tests: Add missing run-pass annotations
This commit is contained in:
parent
0e9b465d72
commit
ca9faa52f5
682 changed files with 1090 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
// ignore-cross-compile
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Test that the Callbacks interface to the compiler works.
|
||||
|
||||
// ignore-cross-compile
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::env;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![feature(rustc_private)]
|
||||
#![no_std]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
|
||||
#![feature(box_syntax)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
// This briefly tests the capability of `Cell` and `RefCell` to implement the
|
||||
// `Encodable` and `Decodable` traits via `#[derive(Encodable, Decodable)]`
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate serialize;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![feature(rustc_private)]
|
||||
extern crate serialize;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unknown_lints)]
|
||||
// Check that an arena (TypedArena) can carry elements whose drop
|
||||
// methods might access borrowed data, as long as the borrowed data
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// `#[derive(Trait)]` works for empty structs/variants with braces or parens.
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_must_use)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_imports)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:issue-13560-1.rs
|
||||
// aux-build:issue-13560-2.rs
|
||||
// aux-build:issue-13560-3.rs
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_mut)]
|
||||
#![allow(unused_imports)]
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_variables)]
|
||||
// no-prefer-dynamic
|
||||
// ignore-cross-compile
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:lint-for-crate.rs
|
||||
// ignore-stage1
|
||||
// compile-flags: -D crate-not-okay
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
#![allow(unused_must_use)]
|
||||
// pretty-expanded FIXME #23616
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:issue-16822.rs
|
||||
|
||||
extern crate issue_16822 as lib;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:issue-18502.rs
|
||||
|
||||
extern crate issue_18502 as fmt;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:issue-24106.rs
|
||||
|
||||
extern crate issue_24106;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:issue-40001-plugin.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Issue #4036: Test for an issue that arose around fixing up type inference
|
||||
// byproducts in vtable records.
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:linkage-visibility.rs
|
||||
// ignore-android: FIXME(#10356)
|
||||
// ignore-windows: std::dynamic_lib does not work on Windows well
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:llvm-pass-plugin.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:lto-syntax-extension-lib.rs
|
||||
// aux-build:lto-syntax-extension-plugin.rs
|
||||
// compile-flags:-C lto
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(plugin_as_library)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Testing that a libsyntax can parse modules with canonicalized base path
|
||||
// ignore-cross-compile
|
||||
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
// run-pass
|
||||
|
||||
pub fn foo() -> isize { 10 }
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// This test case tests whether we can handle code bases that contain a high
|
||||
// number of closures, something that needs special handling in the MingGW
|
||||
// toolchain.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate rustc_data_structures;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:outlive-expansion-phase.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:plugin-args.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:plugin-args.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:plugin-args.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// ignore-cross-compile
|
||||
|
||||
// The general idea of this test is to enumerate all "interesting" expressions and check that
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_must_use)]
|
||||
#![allow(unused_imports)]
|
||||
// This test can't be a unit test in std,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:roman-numerals.rs
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// ignore-cross-compile
|
||||
|
||||
use std::env;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Write};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// ignore-cross-compile
|
||||
// ignore-stage1
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Checks if the "sysv64" calling convention behaves the same as the
|
||||
// "C" calling convention on platforms where both should be the same
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Checks if the correct registers are being used to pass arguments
|
||||
// when the sysv64 ABI is specified.
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_must_use)]
|
||||
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
|
||||
// we never unwind through them.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(allocator_api, nonnull)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
// ignore-wasm32-bare no libc to test ffi with
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
struct X {
|
||||
x: isize
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn f() -> isize { { return 3; } }
|
||||
|
||||
pub fn main() { assert_eq!(f(), 3); }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn main() {
|
||||
assert_eq!(3 as usize * 3, 9);
|
||||
assert_eq!(3 as (usize) * 3, 9);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
// ignore-emscripten no asm
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(asm)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(asm)]
|
||||
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(asm)]
|
||||
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(asm)]
|
||||
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn main() {
|
||||
assert_eq!(1, 1,);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn main() {
|
||||
assert!(r#"☃\backslash"#.contains("\\"));
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn main() {
|
||||
assert_ne!(1, 2,);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Issue 483 - Assignment expressions result in nil
|
||||
|
||||
fn test_assign() {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn that_odd_parse(c: bool, n: usize) -> u32 {
|
||||
let x = 2;
|
||||
let a = [1, 2, 3, 4];
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::mem::size_of;
|
||||
|
||||
// The main point of this test is to ensure that we can parse and resolve
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
trait Foo: Iterator<Item = i32> {}
|
||||
trait Bar: Foo {}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(atomic_access)]
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(cfg_target_has_atomic)]
|
||||
#![feature(integer_atomics)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(extended_compare_and_swap)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_must_use)]
|
||||
#![allow(deprecated)]
|
||||
// ignore-cloudabi no process support
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(main)]
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(main)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(rust1)]
|
||||
pub fn main() { }
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(start)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(main)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:augmented_assignments.rs
|
||||
|
||||
extern crate augmented_assignments;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::ops::AddAssign;
|
||||
|
||||
struct Int(i32);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_imports)]
|
||||
#![deny(unused_assignments)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
struct Pair<T, U> { a: T, b: U }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(path_statements)]
|
||||
#![allow(dead_code)]
|
||||
macro_rules! auto {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
fn f<T>(x: Vec<T>) -> T { return x.into_iter().next().unwrap(); }
|
||||
|
||||
fn g<F>(act: F) -> isize where F: FnOnce(Vec<isize>) -> isize { return act(vec![1, 2, 3]); }
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// ignore-test: not a test, used by backtrace-debuginfo.rs to test file!()
|
||||
|
||||
#[inline(never)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// We disable tail merging here because it can't preserve debuginfo and thus
|
||||
// potentially breaks the backtraces. Also, subtle changes can decide whether
|
||||
// tail merging succeeds, so the test might work today but fail tomorrow due to a
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// ignore-android FIXME #17520
|
||||
// ignore-cloudabi spawning processes is not supported
|
||||
// ignore-emscripten spawning processes is not supported
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::ops::FnMut;
|
||||
|
||||
fn call_f<F:FnMut()>(mut f: F) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
pub fn main() {
|
||||
let x: &'static str = "foo";
|
||||
println!("{}", x);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Catch mistakes in the overflowing literals lint.
|
||||
#![deny(overflowing_literals)]
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Check that issue #954 stays fixed
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::sync::Arc;
|
||||
fn dispose(_x: Arc<bool>) { }
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// Check that partially moved from function parameters are dropped after the
|
||||
// named bindings that move from them.
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
use std::ops::Mul;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
// Binop corner cases
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#[cfg(any(target_pointer_width = "32"))]
|
||||
fn target() {
|
||||
assert_eq!(-1000isize as usize >> 3_usize, 536870787_usize);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_imports)]
|
||||
mod bar {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// aux-build:blind-item-mixed-crate-use-item-foo.rs
|
||||
// aux-build:blind-item-mixed-crate-use-item-foo2.rs
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
mod m {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
fn asBlock<F>(f: F) -> usize where F: FnOnce() -> usize {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue