Skip to content

Commit 5ed5a0d

Browse files
committed
Added // run-pass to the migrated tests.
1 parent 59a6c40 commit 5ed5a0d

File tree

465 files changed

+926
-0
lines changed

Some content is hidden

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

465 files changed

+926
-0
lines changed

src/test/run-pass/lib-defaults.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// ignore-wasm32-bare no libc to test ffi with
1214

1315
// compile-flags: -lrust_test_helpers

src/test/run-pass/rustc-rust-log.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// rustc-env:RUST_LOG=debug
1214

1315
fn main() {}

src/test/ui/run-pass/alias-uninit-value.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112

1213

1314
// Regression test for issue #374

src/test/ui/run-pass/alignment-gep-tup-like-1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![feature(box_syntax)]
1214

1315
struct pair<A,B> {

src/test/ui/run-pass/alloca-from-derived-tydesc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113

1214
// pretty-expanded FIXME #23616
1315

src/test/ui/run-pass/artificial-block.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113

1214
fn f() -> isize { { return 3; } }
1315

src/test/ui/run-pass/as-precedence.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113

1214
fn main() {
1315
assert_eq!(3 as usize * 3, 9);

src/test/ui/run-pass/asm-concat-src.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214
// ignore-emscripten no asm
1315

src/test/ui/run-pass/asm-in-moved.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// revisions: ast mir
1214
//[mir]compile-flags: -Z borrowck=mir
1315

src/test/ui/run-pass/asm-in-out-operand.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![feature(asm)]
1214

1315
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

src/test/ui/run-pass/asm-indirect-memory.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![feature(asm)]
1214

1315
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

src/test/ui/run-pass/asm-out-assign.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// revisions ast mir
1214
//[mir]compile-flags: -Z borrowck=mir
1315

src/test/ui/run-pass/assert-eq-trailing-comma.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
fn main() {
1214
assert_eq!(1, 1,);
1315
}

src/test/ui/run-pass/assert-escape.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
fn main() {
1214
assert!(r#"☃\backslash"#.contains("\\"));
1315
}

src/test/ui/run-pass/assert-ne-trailing-comma.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
fn main() {
1214
assert_ne!(1, 2,);
1315
}

src/test/ui/run-pass/assign-assign.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// Issue 483 - Assignment expressions result in nil
1214

1315
fn test_assign() {

src/test/ui/run-pass/assoc-oddities-3.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
fn that_odd_parse(c: bool, n: usize) -> u32 {
1214
let x = 2;
1315
let a = [1, 2, 3, 4];

src/test/ui/run-pass/async-await.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// edition:2018
1214

1315
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]

src/test/ui/run-pass/atomic-access-bool.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![feature(atomic_access)]
1214
use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT};
1315
use std::sync::atomic::Ordering::*;

src/test/ui/run-pass/atomic-compare_exchange.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![feature(extended_compare_and_swap)]
1214
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
1315
use std::sync::atomic::Ordering::*;

src/test/ui/run-pass/atomic-print.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// ignore-cloudabi no process support
1214
// ignore-emscripten no threads support
1315

src/test/ui/run-pass/attr-before-view-item.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(custom_attribute, test)]

src/test/ui/run-pass/attr-before-view-item2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(custom_attribute, test)]

src/test/ui/run-pass/attr-main-2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113

1214
#![feature(main)]
1315

src/test/ui/run-pass/attr-main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(main)]

src/test/ui/run-pass/attr-mix-new.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
11+
// run-pass
1012
// pretty-expanded FIXME #23616
1113

1214
#![allow(unused_attribute)]

src/test/ui/run-pass/attr-on-generic-formals.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// This test ensures we can attach attributes to the formals in all
1214
// places where generic parameter lists occur, assuming appropriate
1315
// feature gates are enabled.

src/test/ui/run-pass/attr-shebang.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
#![feature(rust1)]
33
pub fn main() { }
44
// ignore-license
5+
// run-pass

src/test/ui/run-pass/attr-start.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(start)]

src/test/ui/run-pass/attr.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(main)]

src/test/ui/run-pass/augmented-assignments-feature-gate-cross.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// aux-build:augmented_assignments.rs
1214

1315
extern crate augmented_assignments;

src/test/ui/run-pass/augmented-assignments-feature-gate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
use std::ops::AddAssign;
1214

1315
struct Int(i32);

src/test/ui/run-pass/augmented-assignments.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#![deny(unused_assignments)]
1214

1315
use std::mem;

src/test/ui/run-pass/auto-instantiate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
#[derive(Debug)]
1214
struct Pair<T, U> { a: T, b: U }
1315
struct Triple { x: isize, y: isize, z: isize }

src/test/ui/run-pass/auto-is-contextual.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
macro_rules! auto {
1214
() => (struct S;)
1315
}

src/test/ui/run-pass/autobind.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113

1214

1315
fn f<T>(x: Vec<T>) -> T { return x.into_iter().next().unwrap(); }

src/test/ui/run-pass/backtrace-debuginfo.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// We disable tail merging here because it can't preserve debuginfo and thus
1214
// potentially breaks the backtraces. Also, subtle changes can decide whether
1315
// tail merging succeeds, so the test might work today but fail tomorrow due to a

src/test/ui/run-pass/backtrace.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// ignore-android FIXME #17520
1214
// ignore-cloudabi spawning processes is not supported
1315
// ignore-emscripten spawning processes is not supported

src/test/ui/run-pass/bare-static-string.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
pub fn main() {
1214
let x: &'static str = "foo";
1315
println!("{}", x);

src/test/ui/run-pass/binary-minus-without-space.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// Check that issue #954 stays fixed
1214

1315

src/test/ui/run-pass/binops-issue-22743.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
use std::ops::Mul;
1214

1315
#[derive(Copy, Clone)]

src/test/ui/run-pass/binops.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// Binop corner cases
1214

1315
fn test_nil() {

src/test/ui/run-pass/blind-item-local-shadow.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
mod bar {
1214
pub fn foo() -> bool { true }
1315
}

src/test/ui/run-pass/blind-item-mixed-crate-use-item.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// aux-build:blind-item-mixed-crate-use-item-foo.rs
1214
// aux-build:blind-item-mixed-crate-use-item-foo2.rs
1315

src/test/ui/run-pass/blind-item-mixed-use-item.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
// pretty-expanded FIXME #23616
1214

1315
mod m {

0 commit comments

Comments
 (0)