From e6f0e358d6fc811b02b9162d275217b5ac389ab6 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 27 Jul 2022 15:04:20 +0200 Subject: [PATCH] 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. --- src/test/codegen/function-arguments.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/test/codegen/function-arguments.rs b/src/test/codegen/function-arguments.rs index dda139be6fcae..bc650ebf5eeb6 100644 --- a/src/test/codegen/function-arguments.rs +++ b/src/test/codegen/function-arguments.rs @@ -233,10 +233,3 @@ pub fn enum_id_1(x: Option>) -> Option> { pub fn enum_id_2(x: Option) -> Option { x } - -// CHECK: noalias {{i8\*|ptr}} @allocator() -#[no_mangle] -#[rustc_allocator] -pub fn allocator() -> *const i8 { - std::ptr::null() -}