Skip to content

Commit e6f0e35

Browse files
committed
Remove outdated rustc_allocator test
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.
1 parent c87e20b commit e6f0e35

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/test/codegen/function-arguments.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,3 @@ pub fn enum_id_1(x: Option<Result<u16, u16>>) -> Option<Result<u16, u16>> {
233233
pub fn enum_id_2(x: Option<u8>) -> Option<u8> {
234234
x
235235
}
236-
237-
// CHECK: noalias {{i8\*|ptr}} @allocator()
238-
#[no_mangle]
239-
#[rustc_allocator]
240-
pub fn allocator() -> *const i8 {
241-
std::ptr::null()
242-
}

0 commit comments

Comments
 (0)