Skip to content

Commit 2d9f0ba

Browse files
committed
update all the tests
1 parent 4b25abd commit 2d9f0ba

File tree

8,586 files changed

+11606
-11576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,586 files changed

+11606
-11576
lines changed

tests/ui-fulldeps/hash-stable-is-unstable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zdeduplicate-diagnostics=yes
1+
//@compile-flags: -Zdeduplicate-diagnostics=yes
22
extern crate rustc_data_structures;
33
//~^ use of unstable library feature 'rustc_private'
44
extern crate rustc_macros;

tests/ui-fulldeps/internal-lints/bad_opt_access.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
// Test that accessing command line options by field access triggers a lint for those fields
44
// that have wrapper functions which should be used.

tests/ui-fulldeps/internal-lints/default_hash_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_private)]
44
#![deny(rustc::default_hash_types)]

tests/ui-fulldeps/internal-lints/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![crate_type = "lib"]
44
#![feature(rustc_attrs)]

tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_private)]
44
#![deny(rustc::lint_pass_impl_without_macro)]

tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_private)]
44
#![deny(rustc::usage_of_qualified_ty)]

tests/ui-fulldeps/internal-lints/query_stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_private)]
44
#![deny(rustc::potential_query_instability)]

tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_attrs)]
44
#![feature(rustc_private)]

tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22

33
#![feature(rustc_private)]
44

tests/ui-fulldeps/lint-pass-macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z unstable-options
1+
//@compile-flags: -Z unstable-options
22
// check-pass
33

44
#![feature(rustc_private)]

tests/ui-fulldeps/missing-rustc-driver-error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test that we get the following hint when trying to use a compiler crate without rustc_driver.
2-
// error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate
3-
// compile-flags: --emit link
2+
//@error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate
3+
//@compile-flags: --emit link
44
// normalize-stderr-test ".*crate .* required.*\n\n" -> ""
55
// normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"
66

tests/ui-fulldeps/pathless-extern-unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// edition:2018
2-
// compile-flags:--extern rustc_middle
1+
//@edition:2018
2+
//@compile-flags:--extern rustc_middle
33

44
// Test that `--extern rustc_middle` fails with `rustc_private`.
55

tests/ui-fulldeps/plugin/feature-gate-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:empty-plugin.rs
1+
//@aux-build:empty-plugin.rs
22
// ignore-stage1
33

44
#![plugin(empty_plugin)]

tests/ui-fulldeps/plugin/gated-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:empty-plugin.rs
1+
//@aux-build:empty-plugin.rs
22
// ignore-stage1
33

44
#![plugin(empty_plugin)]

tests/ui-fulldeps/plugin/issue-15778-fail.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// aux-build:lint-for-crate.rs
1+
//@aux-build:lint-for-crate.rs
22
// ignore-stage1
3-
// compile-flags: -D crate-not-okay
3+
//@compile-flags: -D crate-not-okay
44

55
#![feature(plugin)] //~ ERROR crate is not marked with #![crate_okay]
66
#![plugin(lint_for_crate)]

tests/ui-fulldeps/plugin/issue-40001.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue-40001-plugin.rs
2+
//@aux-build:issue-40001-plugin.rs
33
// ignore-stage1
44

55
#![feature(plugin, register_tool)]

tests/ui-fulldeps/plugin/lint-group-plugin-deny-cmdline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// aux-build:lint-group-plugin-test.rs
1+
//@aux-build:lint-group-plugin-test.rs
22
// ignore-stage1
3-
// compile-flags: -D lint-me
3+
//@compile-flags: -D lint-me
44

55
#![feature(plugin)]
66

tests/ui-fulldeps/plugin/lint-group-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:lint-group-plugin-test.rs
2+
//@aux-build:lint-group-plugin-test.rs
33
// ignore-stage1
44

55
#![feature(plugin)]

tests/ui-fulldeps/plugin/lint-plugin-cmdline-allow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// check-pass
2-
// aux-build:lint-plugin-test.rs
2+
//@aux-build:lint-plugin-test.rs
33
// ignore-stage1
4-
// compile-flags: -A test-lint
4+
//@compile-flags: -A test-lint
55

66
#![feature(plugin)]
77
#![plugin(lint_plugin_test)] //~ WARNING compiler plugins are deprecated

tests/ui-fulldeps/plugin/lint-plugin-cmdline-load.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// check-pass
2-
// aux-build:lint-plugin-test.rs
2+
//@aux-build:lint-plugin-test.rs
33
// ignore-stage1
4-
// compile-flags: -Z crate-attr=plugin(lint_plugin_test)
4+
//@compile-flags: -Z crate-attr=plugin(lint_plugin_test)
55

66
#![feature(plugin)]
77

tests/ui-fulldeps/plugin/lint-plugin-deny-attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:lint-plugin-test.rs
1+
//@aux-build:lint-plugin-test.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

tests/ui-fulldeps/plugin/lint-plugin-deny-cmdline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// aux-build:lint-plugin-test.rs
1+
//@aux-build:lint-plugin-test.rs
22
// ignore-stage1
3-
// compile-flags: -D test-lint
3+
//@compile-flags: -D test-lint
44

55
#![feature(plugin)]
66
#![plugin(lint_plugin_test)]

tests/ui-fulldeps/plugin/lint-plugin-forbid-attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:lint-plugin-test.rs
1+
//@aux-build:lint-plugin-test.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

tests/ui-fulldeps/plugin/lint-plugin-forbid-cmdline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// aux-build:lint-plugin-test.rs
1+
//@aux-build:lint-plugin-test.rs
22
// ignore-stage1
3-
// compile-flags: -F test-lint
3+
//@compile-flags: -F test-lint
44

55
#![feature(plugin)]
66
#![plugin(lint_plugin_test)]

tests/ui-fulldeps/plugin/lint-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:lint-plugin-test.rs
2+
//@aux-build:lint-plugin-test.rs
33
// ignore-stage1
44
#![feature(plugin)]
55
#![plugin(lint_plugin_test)] //~ WARNING use of deprecated attribute

tests/ui-fulldeps/plugin/lint-tool-cmdline-allow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// check-pass
2-
// aux-build:lint-tool-test.rs
2+
//@aux-build:lint-tool-test.rs
33
// ignore-stage1
4-
// compile-flags: -A test-lint
4+
//@compile-flags: -A test-lint
55

66
#![feature(plugin)]
77
#![plugin(lint_tool_test)] //~ WARNING compiler plugins are deprecated

tests/ui-fulldeps/plugin/lint-tool-test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// aux-build:lint-tool-test.rs
1+
//@aux-build:lint-tool-test.rs
22
// ignore-stage1
3-
// compile-flags: --cfg foo
3+
//@compile-flags: --cfg foo
44

55
#![feature(plugin)]
66
#![plugin(lint_tool_test)]

tests/ui-fulldeps/plugin/lto-syntax-extension.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// run-pass
2-
// aux-build:lto-syntax-extension-lib.rs
3-
// aux-build:lto-syntax-extension-plugin.rs
4-
// compile-flags:-C lto
2+
//@aux-build:lto-syntax-extension-lib.rs
3+
//@aux-build:lto-syntax-extension-plugin.rs
4+
//@compile-flags:-C lto
55
// ignore-stage1
66
// no-prefer-dynamic
77

tests/ui-fulldeps/plugin/macro-crate-rlib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:rlib-crate-test.rs
1+
//@aux-build:rlib-crate-test.rs
22
// ignore-stage1
33
// ignore-cross-compile gives a different error message
44

tests/ui-fulldeps/plugin/multiple-plugins.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
2-
// aux-build:multiple-plugins-1.rs
3-
// aux-build:multiple-plugins-2.rs
2+
//@aux-build:multiple-plugins-1.rs
3+
//@aux-build:multiple-plugins-2.rs
44
// ignore-stage1
55

66
// Check that the plugin registrar of multiple plugins doesn't conflict

tests/ui-fulldeps/plugin/outlive-expansion-phase.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:outlive-expansion-phase.rs
2+
//@aux-build:outlive-expansion-phase.rs
33
// ignore-stage1
44

55
#![feature(plugin)]

tests/ui-fulldeps/plugin/plugin-args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:empty-plugin.rs
1+
//@aux-build:empty-plugin.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

tests/ui-fulldeps/plugin/plugin-as-extern-crate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// aux-build:empty-plugin.rs
2+
//@aux-build:empty-plugin.rs
33
// ignore-cross-compile
44
//
55
// empty_plugin will not compile on a cross-compiled target because

tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustc-env:CARGO_CRATE_NAME=rustc_dummy
1+
//@rustc-env:CARGO_CRATE_NAME=rustc_dummy
22

33
#![feature(rustc_private)]
44
#![crate_type = "lib"]

tests/ui-fulldeps/session-diagnostic/invalid-variable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-fail
2-
// compile-flags: --test
2+
//@compile-flags: --test
33
// test that messages referencing non-existent fields cause test failures
44

55
#![feature(rustc_private)]

tests/ui-fulldeps/stable-mir/crate-info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// ignore-stage1
55
// ignore-cross-compile
66
// ignore-remote
7-
// edition: 2021
7+
//@edition: 2021
88

99
#![feature(rustc_private)]
1010
#![feature(assert_matches)]

tests/ui/abi/abi-sysv64-arg-passing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// Checks if the "sysv64" calling convention behaves the same as the
33
// "C" calling convention on platforms where both should be the same
44

tests/ui/abi/abi-sysv64-register-usage.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// run-pass
1+
//@run
22
// Checks if the correct registers are being used to pass arguments
33
// when the sysv64 ABI is specified.
44

55
// ignore-android
66
// ignore-arm
77
// ignore-aarch64
8-
// needs-asm-support
8+
//@needs-asm-support
99

1010
#[cfg(target_arch = "x86_64")]
1111
pub extern "sysv64" fn all_the_registers(

tests/ui/abi/anon-extern-mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// pretty-expanded FIXME #23616
33
// ignore-wasm32-bare no libc to test ffi with
44

tests/ui/abi/c-stack-as-value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// pretty-expanded FIXME #23616
33
// ignore-wasm32-bare no libc to test ffi with
44

tests/ui/abi/c-stack-returning-int64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test with
33
// ignore-sgx no libc
44

tests/ui/abi/cabi-int-widening.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33

44
#[link(name = "rust_test_helpers", kind = "static")]

tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
1+
//@run
2+
//@aux-build:anon-extern-mod-cross-crate-1.rs
33
// pretty-expanded FIXME #23616
44
// ignore-wasm32-bare no libc to test ffi with
55

tests/ui/abi/cross-crate/duplicated-external-mods.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
3-
// aux-build:anon-extern-mod-cross-crate-1.rs
1+
//@run
2+
//@aux-build:anon-extern-mod-cross-crate-1.rs
3+
//@aux-build:anon-extern-mod-cross-crate-1.rs
44
// pretty-expanded FIXME #23616
55
// ignore-wasm32-bare no libc to test ffi with
66

tests/ui/abi/extern/extern-call-deep.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33
// ignore-emscripten blows the JS stack
44

tests/ui/abi/extern/extern-call-deep2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(unused_must_use)]
33
// ignore-emscripten no threads support
44
#![feature(rustc_private)]

tests/ui/abi/extern/extern-call-direct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// Test direct calls to extern fns.
33

44

tests/ui/abi/extern/extern-call-indirect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33

44
#![feature(rustc_private)]

tests/ui/abi/extern/extern-call-scrub.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(unused_must_use)]
33
// This time we're testing repeatedly going up and down both stacks to
44
// make sure the stack pointers are maintained properly in both

tests/ui/abi/extern/extern-crosscrate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:extern-crosscrate-source.rs
1+
//@run
2+
//@aux-build:extern-crosscrate-source.rs
33
// ignore-wasm32-bare no libc to test ffi with
44

55
#![feature(rustc_private)]

tests/ui/abi/extern/extern-pass-TwoU16s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU32s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU64s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU8s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc for ffi testing
33

44
// Test a function that takes/returns a u8.

0 commit comments

Comments
 (0)