Skip to content

Commit

Permalink
Remove outdated rustc_allocator test
Browse files Browse the repository at this point in the history
This attribute now does more than just place noalias on the return,
and has specific requirements for the signature.

Drop the test entirely, as we already check __rust_alloc attributes
in other codegen tests.
  • Loading branch information
nikic committed Jul 27, 2022
1 parent c87e20b commit e6f0e35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/test/codegen/function-arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,3 @@ pub fn enum_id_1(x: Option<Result<u16, u16>>) -> Option<Result<u16, u16>> {
pub fn enum_id_2(x: Option<u8>) -> Option<u8> {
x
}

// CHECK: noalias {{i8\*|ptr}} @allocator()
#[no_mangle]
#[rustc_allocator]
pub fn allocator() -> *const i8 {
std::ptr::null()
}

0 comments on commit e6f0e35

Please sign in to comment.