about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-07-27 15:04:20 +0200
committerNikita Popov <npopov@redhat.com>2022-07-27 16:19:07 +0200
commite6f0e358d6fc811b02b9162d275217b5ac389ab6 (patch)
treee6f1d4e538433ca400fdee33a9b08b5b4b29c58f
parentc87e20bab091ef007d7ecdfd09353f2d53886897 (diff)
downloadrust-e6f0e358d6fc811b02b9162d275217b5ac389ab6.tar.gz
rust-e6f0e358d6fc811b02b9162d275217b5ac389ab6.zip
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.
-rw-r--r--src/test/codegen/function-arguments.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/codegen/function-arguments.rs b/src/test/codegen/function-arguments.rs
index dda139be6fc..bc650ebf5ee 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<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()
-}