mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Rename must-compile-successfully into compile-pass
This commit is contained in:
parent
9c2bfcbea2
commit
812656dc95
@ -68,7 +68,7 @@ Some examples of `X` in `ignore-X`:
|
||||
|
||||
* `min-{gdb,lldb}-version`
|
||||
* `min-llvm-version`
|
||||
* `must-compile-successfully` for UI tests, indicates that the test is supposed
|
||||
* `compile-pass` for UI tests, indicates that the test is supposed
|
||||
to compile, as opposed to the default where the test is supposed to error out.
|
||||
* `compile-flags` passes extra command-line args to the compiler,
|
||||
e.g. `compile-flags -g` which forces debuginfo to be enabled.
|
||||
@ -134,7 +134,7 @@ so forth.
|
||||
Normally, the test-runner checks that UI tests fail compilation. If you want
|
||||
to do a UI test for code that *compiles* (e.g. to test warnings, or if you
|
||||
have a collection of tests, only some of which error out), you can use the
|
||||
`// must-compile-successfully` header command to have the test runner instead
|
||||
`// compile-pass` header command to have the test runner instead
|
||||
check that the test compiles successfully.
|
||||
|
||||
### Editing and updating the reference files
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn with_closure<F, A>(_: F)
|
||||
where F: FnOnce(A, &u32)
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn with_closure<F, A>(_: F)
|
||||
where F: FnOnce(A, &u32)
|
||||
|
@ -13,7 +13,7 @@
|
||||
// See https://github.com/rust-lang/rust/issues/47309
|
||||
|
||||
// compile-flags:-Clink-dead-code
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type="rlib"]
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// compile-flags: --emit=metadata
|
||||
// aux-build:rmeta_rlib.rs
|
||||
// no-prefer-dynamic
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// Check that building a metadata crate works with a dependent, rlib crate.
|
||||
// This is a cfail test since there is no executable to run.
|
||||
|
@ -11,7 +11,7 @@
|
||||
// compile-flags: --emit=metadata
|
||||
// aux-build:rmeta_meta.rs
|
||||
// no-prefer-dynamic
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// Check that building a metadata crate works with a dependent, metadata-only
|
||||
// crate.
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// compile-flags: --emit=metadata
|
||||
// no-prefer-dynamic
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#[deny(warnings)]
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// aux-build:incremental_proc_macro_aux.rs
|
||||
// ignore-stage1
|
||||
// revisions: cfail1 cfail2
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This test makes sure that we still find the proc-macro registrar function
|
||||
// when we compile proc-macros incrementally (see #47292).
|
||||
|
@ -15,7 +15,7 @@
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph -Cpanic=unwind
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(panic_unwind)]
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
@ -14,7 +14,7 @@
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
@ -14,7 +14,7 @@
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// results in a change of the ICH for the enum's metadata, and that it stays
|
||||
// the same between rev2 and rev3.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -C debug-assertions
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// results in a change of the ICH for the struct's metadata, and that it stays
|
||||
// the same between rev2 and rev3.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// results in a change of the ICH for the trait's metadata, and that it stays
|
||||
// the same between rev2 and rev3.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// results in a change of the ICH for the enum's metadata, and that it stays
|
||||
// the same between rev2 and rev3.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// and make sure that the hash has changed, then change nothing between rev2 and
|
||||
// rev3 and make sure that the hash has not changed.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
// the nested items (or even added new ones).
|
||||
|
||||
// revisions: cfail1 cfail2
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2 cfail3
|
||||
// compile-flags:-Zquery-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// revisions:cfail1 cfail2 cfail3
|
||||
// compile-flags: -Z query-dep-graph --test
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![crate_type = "rlib"]
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// revisions: cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This test case makes sure that we can compile with incremental compilation
|
||||
// enabled when there are macros exported from this crate. (See #37756)
|
||||
|
@ -16,7 +16,7 @@
|
||||
// Note that we specify -g so that the FileMaps actually get referenced by the
|
||||
// incr. comp. cache:
|
||||
// compile-flags: -Z query-dep-graph -g
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![crate_type= "rlib"]
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// revisions: cfail1 cfail2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// revisions: cfail1 cfail2 cfail3
|
||||
// compile-flags: -Coverflow-checks=on
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// failure-status: 1
|
||||
|
||||
#![feature(dyn_trait)]
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// failure-status: 1
|
||||
|
||||
use std::io::{Error, ErrorKind};
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![warn(unreachable_patterns)]
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
// run-pass
|
||||
|
||||
union Transmute<T: Copy, U: Copy> {
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(const_fn)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// if `X` were used instead of `x`, `X - 10` would result in a lint.
|
||||
// This file should never produce a lint, no matter how the const
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// Encountered while testing #44614.
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
pub fn main() {
|
||||
// Constant of generic type (int)
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(const_fn)]
|
||||
|
||||
|
@ -9,4 +9,4 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: --explain E0591
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
|
||||
|
@ -13,7 +13,7 @@
|
||||
// `#![macro_escape]` is incompatible with crate-level `#![macro_use]`
|
||||
// already present in issue-43106-gating-of-builtin-attrs.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![macro_escape]
|
||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
||||
|
@ -16,7 +16,7 @@
|
||||
// using `rustc_attrs` feature. There is a separate compile-fail/ test
|
||||
// ensuring that the attribute feature-gating works in this context.)
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// Test that compiling hello world succeeds with no output of any kind.
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// tests that the following code compiles, but produces a future-compatibility warning
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue_38875_b.rs
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
extern crate issue_38875_b;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#[repr(C,u8)]
|
||||
enum Foo {
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -A bad-style
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
let _InappropriateCamelCasing = true;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -W bad-style
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
let _InappropriateCamelCasing = true;
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![warn(unused)] // UI tests pass `-A unused` (#43896)
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![warn(unused_parens)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// this tests the `unknown_lint` lint, especially the suggestions
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
let error = 255i8; //~WARNING literal out of range for i8
|
||||
|
@ -14,7 +14,7 @@
|
||||
// suggestions to use `crate` given when it is on). When that feature becomes
|
||||
// stable, this test can be deleted.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(macro_vis_matcher)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(macro_vis_matcher)]
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: --error-format pretty-json -Zunstable-options
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// The output for humans should just highlight the whole span without showing
|
||||
// the suggested replacement, but we also want to test that suggested
|
||||
|
@ -8,8 +8,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 1056,
|
||||
"byte_end": 1069,
|
||||
"byte_start": 1043,
|
||||
"byte_end": 1056,
|
||||
"line_start": 25,
|
||||
"line_end": 25,
|
||||
"column_start": 14,
|
||||
@ -35,8 +35,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 902,
|
||||
"byte_end": 915,
|
||||
"byte_start": 889,
|
||||
"byte_end": 902,
|
||||
"line_start": 20,
|
||||
"line_end": 20,
|
||||
"column_start": 9,
|
||||
@ -64,8 +64,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 1056,
|
||||
"byte_end": 1069,
|
||||
"byte_start": 1043,
|
||||
"byte_end": 1056,
|
||||
"line_start": 25,
|
||||
"line_end": 25,
|
||||
"column_start": 14,
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z trace-macros
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn main() {
|
||||
println!("Hello, World!");
|
||||
|
@ -14,7 +14,7 @@
|
||||
// regions is erased.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
// report an error because of the (implied) bound that `'b: 'a`.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
// arbitrary types without ICEs.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
const HI: &str = "hi";
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
// including) the call to `use_x`. The `else` branch is not included.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(dropck_eyepatch)]
|
||||
|
@ -16,7 +16,7 @@
|
||||
// over a yield -- because the data that is borrowed (`*x`) is not
|
||||
// stored on the stack.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
fn foo(x: &mut u32) {
|
||||
move || {
|
||||
|
@ -23,7 +23,7 @@
|
||||
// |
|
||||
// = note: move occurs because the value has type `A`, which does not implement the `Copy` trait
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(nll)]
|
||||
#![feature(box_patterns)]
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(nll)]
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(nll)]
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
//compile-flags: -Z emit-end-regions -Zborrowck=mir -Z nll
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
// we don't even propagate constraints from the closures to the callers.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(dyn_trait)]
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// Test that we assume that universal types like `T` outlive the
|
||||
// function body.
|
||||
|
@ -12,7 +12,7 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
// compile-flags: -Z print-fuel=foo
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
struct S1(u8, u16, u8);
|
||||
struct S2(u8, u16, u8);
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// All of the types that occur in this function are uninteresting, in
|
||||
// that one cannot control the sizes of these types with the same sort
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates how generics are handled: types have to be
|
||||
// monomorphized, in the MIR of the original function in which they
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates that when multiple structural types occur in
|
||||
// a function, every one of them is included in the output.
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates how niche-filling enums are handled,
|
||||
// modelled after cases like `Option<&u32>`, `Option<bool>` and such.
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates that when the same type occurs repeatedly
|
||||
// (even if multiple functions), it is only printed once in the
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates how packing is handled; it should cause
|
||||
// the elimination of padding that would normally be introduced
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
// This file illustrates how padding is handled: alignment
|
||||
// requirements can lead to the introduction of padding, either before
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user