about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2022-07-27 00:24:30 +0200
committerest31 <MTest31@outlook.com>2022-07-27 03:20:25 +0200
commit152c851f891eaade1bbb3cc5d35d3e7b7412c7fa (patch)
tree39907742345b2f126dc76ce36603a85b6fe35697 /src/test/codegen
parentc11207ec89b856164bba03b8ecfe07b0b234ed21 (diff)
downloadrust-152c851f891eaade1bbb3cc5d35d3e7b7412c7fa.tar.gz
rust-152c851f891eaade1bbb3cc5d35d3e7b7412c7fa.zip
Make forward compatibility lint deprecated_cfg_attr_crate_type_name deny by default
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/external-no-mangle-statics.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/codegen/external-no-mangle-statics.rs b/src/test/codegen/external-no-mangle-statics.rs
index 6274434cd8f..c6ecb7aa96a 100644
--- a/src/test/codegen/external-no-mangle-statics.rs
+++ b/src/test/codegen/external-no-mangle-statics.rs
@@ -1,12 +1,11 @@
 // revisions: lib staticlib
 // ignore-emscripten default visibility is hidden
 // compile-flags: -O
+// [lib] compile-flags: --crate-type lib
+// [staticlib] compile-flags: --crate-type staticlib
 // `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their
 // definitions
 
-#![cfg_attr(lib, crate_type = "lib")]
-#![cfg_attr(staticlib, crate_type = "staticlib")]
-
 // CHECK: @A = local_unnamed_addr constant
 #[no_mangle]
 static A: u8 = 0;