diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/extern | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/extern')
40 files changed, 104 insertions, 104 deletions
diff --git a/tests/ui/extern/auxiliary/issue-80074-macro-2.rs b/tests/ui/extern/auxiliary/issue-80074-macro-2.rs index bc87a2b5434..a1c26d90de3 100644 --- a/tests/ui/extern/auxiliary/issue-80074-macro-2.rs +++ b/tests/ui/extern/auxiliary/issue-80074-macro-2.rs @@ -1,3 +1,3 @@ -// edition:2018 +//@ edition:2018 macro_rules! m { () => {}; } diff --git a/tests/ui/extern/auxiliary/issue-80074-macro.rs b/tests/ui/extern/auxiliary/issue-80074-macro.rs index 3e912d97715..8d8705582ed 100644 --- a/tests/ui/extern/auxiliary/issue-80074-macro.rs +++ b/tests/ui/extern/auxiliary/issue-80074-macro.rs @@ -1,4 +1,4 @@ -// edition:2018 +//@ edition:2018 macro_rules! foo_ { () => {}; } use foo_ as foo; diff --git a/tests/ui/extern/extern-1.rs b/tests/ui/extern/extern-1.rs index 66e56050172..c0f770ab9f2 100644 --- a/tests/ui/extern/extern-1.rs +++ b/tests/ui/extern/extern-1.rs @@ -1,6 +1,6 @@ -// run-pass +//@ run-pass #![allow(dead_code)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 extern "C" fn f() { } diff --git a/tests/ui/extern/extern-calling-convention-test.rs b/tests/ui/extern/extern-calling-convention-test.rs index 7231a7cde85..7c533df1986 100644 --- a/tests/ui/extern/extern-calling-convention-test.rs +++ b/tests/ui/extern/extern-calling-convention-test.rs @@ -1,7 +1,7 @@ -// run-pass -// aux-build:extern_calling_convention.rs +//@ run-pass +//@ aux-build:extern_calling_convention.rs -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 extern crate extern_calling_convention; diff --git a/tests/ui/extern/extern-compare-with-return-type.rs b/tests/ui/extern/extern-compare-with-return-type.rs index 42693d3a061..316e8b2fc73 100644 --- a/tests/ui/extern/extern-compare-with-return-type.rs +++ b/tests/ui/extern/extern-compare-with-return-type.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass // Tests that we can compare various kinds of extern fn signatures. #![allow(non_camel_case_types)] diff --git a/tests/ui/extern/extern-const.fixed b/tests/ui/extern/extern-const.fixed index 248efc93d00..b338a56dd78 100644 --- a/tests/ui/extern/extern-const.fixed +++ b/tests/ui/extern/extern-const.fixed @@ -4,9 +4,9 @@ // #54388: an unused reference to an undefined static may or may not // compile. To sidestep this by using one that *is* defined. -// run-rustfix -// ignore-wasm32-bare no external library to link to. -// compile-flags: -g +//@ run-rustfix +//@ ignore-wasm32-bare no external library to link to. +//@ compile-flags: -g #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/extern/extern-const.rs b/tests/ui/extern/extern-const.rs index d3b3bef6dae..1c552950afb 100644 --- a/tests/ui/extern/extern-const.rs +++ b/tests/ui/extern/extern-const.rs @@ -4,9 +4,9 @@ // #54388: an unused reference to an undefined static may or may not // compile. To sidestep this by using one that *is* defined. -// run-rustfix -// ignore-wasm32-bare no external library to link to. -// compile-flags: -g +//@ run-rustfix +//@ ignore-wasm32-bare no external library to link to. +//@ compile-flags: -g #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/extern/extern-crate-rename.rs b/tests/ui/extern/extern-crate-rename.rs index fc8afc3e134..9eeea6dc571 100644 --- a/tests/ui/extern/extern-crate-rename.rs +++ b/tests/ui/extern/extern-crate-rename.rs @@ -1,5 +1,5 @@ -// aux-build:m1.rs -// aux-build:m2.rs +//@ aux-build:m1.rs +//@ aux-build:m2.rs extern crate m1; diff --git a/tests/ui/extern/extern-foreign-crate.rs b/tests/ui/extern/extern-foreign-crate.rs index 7f774c44277..939090ab5fc 100644 --- a/tests/ui/extern/extern-foreign-crate.rs +++ b/tests/ui/extern/extern-foreign-crate.rs @@ -1,5 +1,5 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 extern crate std as mystd; diff --git a/tests/ui/extern/extern-methods.rs b/tests/ui/extern/extern-methods.rs index 22792c11366..1e6f6cdad7b 100644 --- a/tests/ui/extern/extern-methods.rs +++ b/tests/ui/extern/extern-methods.rs @@ -1,5 +1,5 @@ -// run-pass -// only-x86 +//@ run-pass +//@ only-x86 trait A { extern "fastcall" fn test1(i: i32); diff --git a/tests/ui/extern/extern-mod-abi.rs b/tests/ui/extern/extern-mod-abi.rs index c543394cca0..8700a379d29 100644 --- a/tests/ui/extern/extern-mod-abi.rs +++ b/tests/ui/extern/extern-mod-abi.rs @@ -1,6 +1,6 @@ -// run-pass +//@ run-pass #![allow(dead_code)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 extern "C" { fn pow(x: f64, y: f64) -> f64; diff --git a/tests/ui/extern/extern-mod-ordering-exe.rs b/tests/ui/extern/extern-mod-ordering-exe.rs index d7cc4dffb44..c735f6bae7a 100644 --- a/tests/ui/extern/extern-mod-ordering-exe.rs +++ b/tests/ui/extern/extern-mod-ordering-exe.rs @@ -1,7 +1,7 @@ -// run-pass -// aux-build:extern_mod_ordering_lib.rs +//@ run-pass +//@ aux-build:extern_mod_ordering_lib.rs -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 extern crate extern_mod_ordering_lib; diff --git a/tests/ui/extern/extern-no-mangle.rs b/tests/ui/extern/extern-no-mangle.rs index ab7c9824af0..dba9689a075 100644 --- a/tests/ui/extern/extern-no-mangle.rs +++ b/tests/ui/extern/extern-no-mangle.rs @@ -5,7 +5,7 @@ // The previous warning only talks about a "function or static" but foreign fns/statics // are also not allowed to have #[no_mangle] -// build-pass +//@ build-pass extern "C" { #[no_mangle] diff --git a/tests/ui/extern/extern-prelude-core.rs b/tests/ui/extern/extern-prelude-core.rs index 56206425f84..ced1e5c3915 100644 --- a/tests/ui/extern/extern-prelude-core.rs +++ b/tests/ui/extern/extern-prelude-core.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![feature(lang_items, start)] #![no_std] diff --git a/tests/ui/extern/extern-prelude-no-speculative.rs b/tests/ui/extern/extern-prelude-no-speculative.rs index 3ba124159e0..949f4c8f2bf 100644 --- a/tests/ui/extern/extern-prelude-no-speculative.rs +++ b/tests/ui/extern/extern-prelude-no-speculative.rs @@ -1,6 +1,6 @@ -// run-pass +//@ run-pass #![allow(unused_variables)] -// compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere +//@ compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere mod m { pub struct LooksLikeExternCrate; diff --git a/tests/ui/extern/extern-prelude-std.rs b/tests/ui/extern/extern-prelude-std.rs index b5627fad960..5ded76cea7c 100644 --- a/tests/ui/extern/extern-prelude-std.rs +++ b/tests/ui/extern/extern-prelude-std.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass mod foo { pub fn test() { diff --git a/tests/ui/extern/extern-pub.rs b/tests/ui/extern/extern-pub.rs index 0b95045a03e..80f1e295d4d 100644 --- a/tests/ui/extern/extern-pub.rs +++ b/tests/ui/extern/extern-pub.rs @@ -1,5 +1,5 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 extern "C" { pub fn free(p: *const u8); diff --git a/tests/ui/extern/extern-rust.rs b/tests/ui/extern/extern-rust.rs index 7cea8be5921..bacdc7aeecb 100644 --- a/tests/ui/extern/extern-rust.rs +++ b/tests/ui/extern/extern-rust.rs @@ -1,5 +1,5 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 #[repr(C)] pub struct Foo(u32); diff --git a/tests/ui/extern/extern-take-value.rs b/tests/ui/extern/extern-take-value.rs index c09a774361f..56ed3328614 100644 --- a/tests/ui/extern/extern-take-value.rs +++ b/tests/ui/extern/extern-take-value.rs @@ -1,5 +1,5 @@ -// run-pass -// aux-build:extern-take-value.rs +//@ run-pass +//@ aux-build:extern-take-value.rs extern crate extern_take_value; diff --git a/tests/ui/extern/extern-thiscall.rs b/tests/ui/extern/extern-thiscall.rs index c491c156af5..3fa796bdbe8 100644 --- a/tests/ui/extern/extern-thiscall.rs +++ b/tests/ui/extern/extern-thiscall.rs @@ -1,5 +1,5 @@ -// run-pass -// only-x86 +//@ run-pass +//@ only-x86 trait A { extern "thiscall" fn test1(i: i32); diff --git a/tests/ui/extern/extern-types-field-offset.rs b/tests/ui/extern/extern-types-field-offset.rs index bfbc1e9bffa..e9c4bb7b230 100644 --- a/tests/ui/extern/extern-types-field-offset.rs +++ b/tests/ui/extern/extern-types-field-offset.rs @@ -1,7 +1,7 @@ -// run-fail -// check-run-results -// exec-env:RUST_BACKTRACE=0 -// normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL" +//@ run-fail +//@ check-run-results +//@ exec-env:RUST_BACKTRACE=0 +//@ normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL" #![feature(extern_types)] extern "C" { diff --git a/tests/ui/extern/extern-types-inherent-impl.rs b/tests/ui/extern/extern-types-inherent-impl.rs index 3f09ac7b8c3..a746c74f110 100644 --- a/tests/ui/extern/extern-types-inherent-impl.rs +++ b/tests/ui/extern/extern-types-inherent-impl.rs @@ -1,7 +1,7 @@ // Test that inherent impls can be defined for extern types. -// check-pass -// aux-build:extern-types-inherent-impl.rs +//@ check-pass +//@ aux-build:extern-types-inherent-impl.rs #![feature(extern_types)] diff --git a/tests/ui/extern/extern-types-manual-sync-send.rs b/tests/ui/extern/extern-types-manual-sync-send.rs index 87eb3f62240..2df0cd4c923 100644 --- a/tests/ui/extern/extern-types-manual-sync-send.rs +++ b/tests/ui/extern/extern-types-manual-sync-send.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass // Test that unsafe impl for Sync/Send can be provided for extern types. #![feature(extern_types)] diff --git a/tests/ui/extern/extern-types-pointer-cast.rs b/tests/ui/extern/extern-types-pointer-cast.rs index de6955bfaaa..78dbee77b9c 100644 --- a/tests/ui/extern/extern-types-pointer-cast.rs +++ b/tests/ui/extern/extern-types-pointer-cast.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![allow(dead_code)] // Test that pointers to extern types can be cast from/to usize, // despite being !Sized. diff --git a/tests/ui/extern/extern-types-size_of_val.rs b/tests/ui/extern/extern-types-size_of_val.rs index 4c4de873b7f..cc4d34e59fa 100644 --- a/tests/ui/extern/extern-types-size_of_val.rs +++ b/tests/ui/extern/extern-types-size_of_val.rs @@ -1,8 +1,8 @@ -// run-fail -// check-run-results -// exec-env:RUST_BACKTRACE=0 -// normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL" -// revisions: size align +//@ run-fail +//@ check-run-results +//@ exec-env:RUST_BACKTRACE=0 +//@ normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL" +//@ revisions: size align #![feature(extern_types)] use std::mem::{align_of_val, size_of_val}; diff --git a/tests/ui/extern/extern-types-thin-pointer.rs b/tests/ui/extern/extern-types-thin-pointer.rs index b85fc4886ab..8e5911228b2 100644 --- a/tests/ui/extern/extern-types-thin-pointer.rs +++ b/tests/ui/extern/extern-types-thin-pointer.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![allow(dead_code)] // Test that pointers and references to extern types are thin, ie they have the same size and // alignment as a pointer to (). diff --git a/tests/ui/extern/extern-types-trait-impl.rs b/tests/ui/extern/extern-types-trait-impl.rs index 656101ed535..44300b10514 100644 --- a/tests/ui/extern/extern-types-trait-impl.rs +++ b/tests/ui/extern/extern-types-trait-impl.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![allow(dead_code)] // Test that traits can be implemented for extern types. #![feature(extern_types)] diff --git a/tests/ui/extern/extern-vectorcall.rs b/tests/ui/extern/extern-vectorcall.rs index a283573c9fb..c0d872bc14b 100644 --- a/tests/ui/extern/extern-vectorcall.rs +++ b/tests/ui/extern/extern-vectorcall.rs @@ -1,7 +1,7 @@ -// run-pass -// revisions: x64 x32 -// [x64]only-x86_64 -// [x32]only-x86 +//@ run-pass +//@ revisions: x64 x32 +//@ [x64]only-x86_64 +//@ [x32]only-x86 #![feature(abi_vectorcall)] diff --git a/tests/ui/extern/extern_fat_drop.rs b/tests/ui/extern/extern_fat_drop.rs index 1cd12c2cab3..9691f562d89 100644 --- a/tests/ui/extern/extern_fat_drop.rs +++ b/tests/ui/extern/extern_fat_drop.rs @@ -1,5 +1,5 @@ -// run-pass -// aux-build:fat_drop.rs +//@ run-pass +//@ aux-build:fat_drop.rs extern crate fat_drop; diff --git a/tests/ui/extern/issue-10025.rs b/tests/ui/extern/issue-10025.rs index 4439b468525..0bdcf7c5c58 100644 --- a/tests/ui/extern/issue-10025.rs +++ b/tests/ui/extern/issue-10025.rs @@ -1,5 +1,5 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 #![allow(dead_code)] unsafe extern fn foo() {} diff --git a/tests/ui/extern/issue-10763.rs b/tests/ui/extern/issue-10763.rs index 627a8c2384c..2381f22f162 100644 --- a/tests/ui/extern/issue-10763.rs +++ b/tests/ui/extern/issue-10763.rs @@ -1,6 +1,6 @@ -// build-pass +//@ build-pass #![allow(dead_code)] -// pretty-expanded FIXME #23616 +//@ pretty-expanded FIXME #23616 extern "Rust" fn foo() {} diff --git a/tests/ui/extern/issue-10764-rpass.rs b/tests/ui/extern/issue-10764-rpass.rs index 42ed1ae93b5..4de387e3d66 100644 --- a/tests/ui/extern/issue-10764-rpass.rs +++ b/tests/ui/extern/issue-10764-rpass.rs @@ -1,4 +1,4 @@ -// run-pass -// pretty-expanded FIXME #23616 +//@ run-pass +//@ pretty-expanded FIXME #23616 extern "Rust" fn main() {} diff --git a/tests/ui/extern/issue-1251.rs b/tests/ui/extern/issue-1251.rs index c2c047c7961..bf701a41f94 100644 --- a/tests/ui/extern/issue-1251.rs +++ b/tests/ui/extern/issue-1251.rs @@ -1,8 +1,8 @@ -// build-pass +//@ build-pass #![allow(unused_attributes)] #![allow(dead_code)] -// pretty-expanded FIXME #23616 -// ignore-wasm32-bare no libc to test ffi with +//@ pretty-expanded FIXME #23616 +//@ ignore-wasm32-bare no libc to test ffi with #![feature(rustc_private)] mod rustrt { diff --git a/tests/ui/extern/issue-13655.rs b/tests/ui/extern/issue-13655.rs index a47b5183f2b..824a68d59d3 100644 --- a/tests/ui/extern/issue-13655.rs +++ b/tests/ui/extern/issue-13655.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![feature(fn_traits, unboxed_closures)] struct Foo<T>(T); diff --git a/tests/ui/extern/issue-18576.rs b/tests/ui/extern/issue-18576.rs index 389cf108b05..0a98e85e484 100644 --- a/tests/ui/extern/issue-18576.rs +++ b/tests/ui/extern/issue-18576.rs @@ -1,6 +1,6 @@ -// run-fail -// error-pattern:stop -// ignore-emscripten no processes +//@ run-fail +//@ error-pattern:stop +//@ ignore-emscripten no processes // #18576 // Make sure that calling an extern function pointer in an unreachable diff --git a/tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs b/tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs index 24fc512dfbf..e9471d207da 100644 --- a/tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs +++ b/tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs @@ -1,6 +1,6 @@ -// run-pass -// needs-unwind -// ignore-emscripten no threads support +//@ run-pass +//@ needs-unwind +//@ ignore-emscripten no threads support // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine // should still run destructors as it unwinds the stack. However, @@ -13,14 +13,14 @@ // test. // LTO settings cannot be combined with -C prefer-dynamic -// no-prefer-dynamic +//@ no-prefer-dynamic // The revisions just enumerate lto settings (the opt-level appeared irrelevant in practice) -// revisions: no thin fat -//[no]compile-flags: -C lto=no -//[thin]compile-flags: -C lto=thin -//[fat]compile-flags: -C lto=fat +//@ revisions: no thin fat +//@[no]compile-flags: -C lto=no +//@[thin]compile-flags: -C lto=thin +//@[fat]compile-flags: -C lto=fat #![feature(panic_internals)] diff --git a/tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs b/tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs index 3b263e58cbe..9486b5f1178 100644 --- a/tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs +++ b/tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs @@ -1,6 +1,6 @@ -// run-pass -// needs-unwind -// ignore-emscripten no threads support +//@ run-pass +//@ needs-unwind +//@ ignore-emscripten no threads support // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine // should still run destructors as it unwinds the stack. However, @@ -28,26 +28,26 @@ // the underlying bug.) // LTO settings cannot be combined with -C prefer-dynamic -// no-prefer-dynamic +//@ no-prefer-dynamic // The revisions combine each lto setting with each optimization // setting; pnkfelix observed three differing behaviors at opt-levels // 0/1/2+3 for this test, so it seems prudent to be thorough. -// revisions: no0 no1 no2 no3 thin0 thin1 thin2 thin3 fat0 fat1 fat2 fat3 - -//[no0]compile-flags: -C opt-level=0 -C lto=no -//[no1]compile-flags: -C opt-level=1 -C lto=no -//[no2]compile-flags: -C opt-level=2 -C lto=no -//[no3]compile-flags: -C opt-level=3 -C lto=no -//[thin0]compile-flags: -C opt-level=0 -C lto=thin -//[thin1]compile-flags: -C opt-level=1 -C lto=thin -//[thin2]compile-flags: -C opt-level=2 -C lto=thin -//[thin3]compile-flags: -C opt-level=3 -C lto=thin -//[fat0]compile-flags: -C opt-level=0 -C lto=fat -//[fat1]compile-flags: -C opt-level=1 -C lto=fat -//[fat2]compile-flags: -C opt-level=2 -C lto=fat -//[fat3]compile-flags: -C opt-level=3 -C lto=fat +//@ revisions: no0 no1 no2 no3 thin0 thin1 thin2 thin3 fat0 fat1 fat2 fat3 + +//@[no0]compile-flags: -C opt-level=0 -C lto=no +//@[no1]compile-flags: -C opt-level=1 -C lto=no +//@[no2]compile-flags: -C opt-level=2 -C lto=no +//@[no3]compile-flags: -C opt-level=3 -C lto=no +//@[thin0]compile-flags: -C opt-level=0 -C lto=thin +//@[thin1]compile-flags: -C opt-level=1 -C lto=thin +//@[thin2]compile-flags: -C opt-level=2 -C lto=thin +//@[thin3]compile-flags: -C opt-level=3 -C lto=thin +//@[fat0]compile-flags: -C opt-level=0 -C lto=fat +//@[fat1]compile-flags: -C opt-level=1 -C lto=fat +//@[fat2]compile-flags: -C opt-level=2 -C lto=fat +//@[fat3]compile-flags: -C opt-level=3 -C lto=fat fn main() { use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/tests/ui/extern/issue-80074.rs b/tests/ui/extern/issue-80074.rs index 6e4f176de82..ba7b55a450f 100644 --- a/tests/ui/extern/issue-80074.rs +++ b/tests/ui/extern/issue-80074.rs @@ -1,6 +1,6 @@ -// edition:2018 -// aux-crate:issue_80074=issue-80074-macro.rs -// aux-crate:issue_80074_2=issue-80074-macro-2.rs +//@ edition:2018 +//@ aux-crate:issue_80074=issue-80074-macro.rs +//@ aux-crate:issue_80074_2=issue-80074-macro-2.rs #[macro_use] extern crate issue_80074; diff --git a/tests/ui/extern/issue-95829.rs b/tests/ui/extern/issue-95829.rs index 3379148ae7b..ad4e04f7c3a 100644 --- a/tests/ui/extern/issue-95829.rs +++ b/tests/ui/extern/issue-95829.rs @@ -1,4 +1,4 @@ -// edition:2018 +//@ edition:2018 extern { async fn L() { //~ ERROR: incorrect function inside `extern` block diff --git a/tests/ui/extern/no-mangle-associated-fn.rs b/tests/ui/extern/no-mangle-associated-fn.rs index 56afd8b9092..b02435509cc 100644 --- a/tests/ui/extern/no-mangle-associated-fn.rs +++ b/tests/ui/extern/no-mangle-associated-fn.rs @@ -1,5 +1,5 @@ -// aux-build: no-mangle-associated-fn.rs -// run-pass +//@ aux-build: no-mangle-associated-fn.rs +//@ run-pass extern crate no_mangle_associated_fn; |
