Skip to content

Commit ca9faa5

Browse files
committed
tests: Add missing run-pass annotations
1 parent 0e9b465 commit ca9faa5

File tree

682 files changed

+1090
-4
lines changed

Some content is hidden

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

682 files changed

+1090
-4
lines changed

src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_imports)]
24
// ignore-cross-compile
35

src/test/run-pass-fulldeps/compiler-calls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Test that the Callbacks interface to the compiler works.
23

34
// ignore-cross-compile

src/test/run-pass-fulldeps/create-dir-all-bare.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
use std::env;
24
use std::fs;
35
use std::path::PathBuf;

src/test/run-pass-fulldeps/derive-no-std-not-supported.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code)]
24
#![feature(rustc_private)]
35
#![no_std]

src/test/run-pass-fulldeps/deriving-encodable-decodable-box.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_imports)]
24

35
#![feature(box_syntax)]

src/test/run-pass-fulldeps/deriving-encodable-decodable-cell-refcell.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_imports)]
24
// This briefly tests the capability of `Cell` and `RefCell` to implement the
35
// `Encodable` and `Decodable` traits via `#[derive(Encodable, Decodable)]`

src/test/run-pass-fulldeps/deriving-global.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(rustc_private)]
24

35
extern crate serialize;

src/test/run-pass-fulldeps/deriving-hygiene.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(non_upper_case_globals)]
24
#![feature(rustc_private)]
35
extern crate serialize;

src/test/run-pass-fulldeps/dropck_tarena_sound_drop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unknown_lints)]
24
// Check that an arena (TypedArena) can carry elements whose drop
35
// methods might access borrowed data, as long as the borrowed data

src/test/run-pass-fulldeps/empty-struct-braces-derive.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// `#[derive(Trait)]` works for empty structs/variants with braces or parens.
23

34
#![feature(rustc_private)]

src/test/run-pass-fulldeps/extern-mod-syntax.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_imports)]
24
#![feature(rustc_private)]
35

src/test/run-pass-fulldeps/issue-11881.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_must_use)]
24
#![allow(dead_code)]
35
#![allow(unused_imports)]

src/test/run-pass-fulldeps/issue-13560.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:issue-13560-1.rs
23
// aux-build:issue-13560-2.rs
34
// aux-build:issue-13560-3.rs

src/test/run-pass-fulldeps/issue-14021.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_mut)]
24
#![allow(unused_imports)]
35
#![feature(rustc_private)]

src/test/run-pass-fulldeps/issue-15149.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_variables)]
24
// no-prefer-dynamic
35
// ignore-cross-compile

src/test/run-pass-fulldeps/issue-15778-pass.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:lint-for-crate.rs
23
// ignore-stage1
34
// compile-flags: -D crate-not-okay

src/test/run-pass-fulldeps/issue-15924.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_imports)]
24
#![allow(unused_must_use)]
35
// pretty-expanded FIXME #23616

src/test/run-pass-fulldeps/issue-16822.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:issue-16822.rs
23

34
extern crate issue_16822 as lib;

src/test/run-pass-fulldeps/issue-18502.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:issue-18502.rs
23

34
extern crate issue_18502 as fmt;

src/test/run-pass-fulldeps/issue-24106.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:issue-24106.rs
23

34
extern crate issue_24106;

src/test/run-pass-fulldeps/issue-24972.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code)]
24
#![feature(rustc_private)]
35

src/test/run-pass-fulldeps/issue-2804.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(non_camel_case_types)]
24
#![allow(dead_code)]
35
#![feature(rustc_private)]

src/test/run-pass-fulldeps/issue-40001.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:issue-40001-plugin.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/issue-4016.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code)]
24

35
#![feature(rustc_private)]

src/test/run-pass-fulldeps/issue-4036.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Issue #4036: Test for an issue that arose around fixing up type inference
23
// byproducts in vtable records.
34

src/test/run-pass-fulldeps/linkage-visibility.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:linkage-visibility.rs
23
// ignore-android: FIXME(#10356)
34
// ignore-windows: std::dynamic_lib does not work on Windows well

src/test/run-pass-fulldeps/llvm-pass-plugin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:llvm-pass-plugin.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/lto-syntax-extension.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:lto-syntax-extension-lib.rs
23
// aux-build:lto-syntax-extension-plugin.rs
34
// compile-flags:-C lto

src/test/run-pass-fulldeps/macro-crate-multi-decorator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(plugin_as_library)]
24
#![allow(dead_code)]
35
#![allow(unused_variables)]

src/test/run-pass-fulldeps/mod_dir_path_canonicalized.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Testing that a libsyntax can parse modules with canonicalized base path
23
// ignore-cross-compile
34

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// run-pass
2+
13
pub fn foo() -> isize { 10 }

src/test/run-pass-fulldeps/myriad-closures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// This test case tests whether we can handle code bases that contain a high
23
// number of closures, something that needs special handling in the MingGW
34
// toolchain.

src/test/run-pass-fulldeps/newtype_index.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(rustc_private)]
24

35
extern crate rustc_data_structures;

src/test/run-pass-fulldeps/outlive-expansion-phase.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:outlive-expansion-phase.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/plugin-args-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:plugin-args.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/plugin-args-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:plugin-args.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/plugin-args-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:plugin-args.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/pprust-expr-roundtrip.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// ignore-cross-compile
23

34
// The general idea of this test is to enumerate all "interesting" expressions and check that

src/test/run-pass-fulldeps/regions-mock-tcx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code)]
24
#![allow(unused_imports)]
35

src/test/run-pass-fulldeps/rename-directory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_must_use)]
24
#![allow(unused_imports)]
35
// This test can't be a unit test in std,

src/test/run-pass-fulldeps/roman-numerals-macro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// aux-build:roman-numerals.rs
23
// ignore-stage1
34

src/test/run-pass-fulldeps/rustc_encodable_hygiene.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(rustc_private)]
24

35
#[allow(dead_code)]

src/test/run-pass-fulldeps/stdio-from.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// ignore-cross-compile
23

34
use std::env;

src/test/run-pass-fulldeps/switch-stdout.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
use std::env;
24
use std::fs::File;
35
use std::io::{Read, Write};

src/test/run-pass-fulldeps/undef_mask.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// ignore-cross-compile
23
// ignore-stage1
34

src/test/run-pass/abi-sysv64-arg-passing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Checks if the "sysv64" calling convention behaves the same as the
23
// "C" calling convention on platforms where both should be the same
34

src/test/run-pass/abi-sysv64-register-usage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Checks if the correct registers are being used to pass arguments
23
// when the sysv64 ABI is specified.
34

src/test/run-pass/abort-on-c-abi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(unused_must_use)]
24
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
35
// we never unwind through them.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(non_camel_case_types)]
24
#![allow(dead_code)]
35

src/test/run-pass/align-with-extern-c-fn.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(stable_features)]
24
#![allow(unused_variables)]
35

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(non_camel_case_types)]
24
#![allow(dead_code)]
35

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(non_camel_case_types)]
24
#![allow(dead_code)]
35

src/test/run-pass/allocator-alloc-one.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(stable_features)]
24

35
#![feature(allocator_api, nonnull)]

src/test/run-pass/anon-extern-mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// pretty-expanded FIXME #23616
23
// ignore-wasm32-bare no libc to test ffi with
34

src/test/run-pass/argument-passing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
struct X {
24
x: isize
35
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn f() -> isize { { return 3; } }
24

35
pub fn main() { assert_eq!(f(), 3); }

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn main() {
24
assert_eq!(3 as usize * 3, 9);
35
assert_eq!(3 as (usize) * 3, 9);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// pretty-expanded FIXME #23616
23
// ignore-emscripten no asm
34

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(asm)]
24
#![allow(dead_code)]
35

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(asm)]
24

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(asm)]
24

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(asm)]
24

35
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn main() {
24
assert_eq!(1, 1,);
35
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn main() {
24
assert!(r#"☃\backslash"#.contains("\\"));
35
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn main() {
24
assert_ne!(1, 2,);
35
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-pass
12
// Issue 483 - Assignment expressions result in nil
23

34
fn test_assign() {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
fn that_odd_parse(c: bool, n: usize) -> u32 {
24
let x = 2;
35
let a = [1, 2, 3, 4];

src/test/run-pass/associated-item-long-paths.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
use std::mem::size_of;
24

35
// The main point of this test is to ensure that we can parse and resolve

src/test/run-pass/associated-types/associated-types-from-supertrait.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
trait Foo: Iterator<Item = i32> {}
24
trait Bar: Foo {}
35

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(stable_features)]
24
#![feature(atomic_access)]
35
use std::sync::atomic::AtomicBool;

src/test/run-pass/atomic-alignment.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![feature(cfg_target_has_atomic)]
24
#![feature(integer_atomics)]
35

0 commit comments

Comments
 (0)