tests: Add missing run-pass annotations

This commit is contained in:
Vadim Petrochenkov 2019-07-27 00:54:25 +03:00
parent 0e9b465d72
commit ca9faa52f5
682 changed files with 1090 additions and 4 deletions

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_imports)]
// ignore-cross-compile

View File

@ -1,3 +1,4 @@
// run-pass
// Test that the Callbacks interface to the compiler works.
// ignore-cross-compile

View File

@ -1,3 +1,5 @@
// run-pass
use std::env;
use std::fs;
use std::path::PathBuf;

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#![feature(rustc_private)]
#![no_std]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_imports)]
#![feature(box_syntax)]

View File

@ -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)]`

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(rustc_private)]
extern crate serialize;

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_upper_case_globals)]
#![feature(rustc_private)]
extern crate serialize;

View File

@ -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

View File

@ -1,3 +1,4 @@
// run-pass
// `#[derive(Trait)]` works for empty structs/variants with braces or parens.
#![feature(rustc_private)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_imports)]
#![feature(rustc_private)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_must_use)]
#![allow(dead_code)]
#![allow(unused_imports)]

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:issue-13560-1.rs
// aux-build:issue-13560-2.rs
// aux-build:issue-13560-3.rs

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_mut)]
#![allow(unused_imports)]
#![feature(rustc_private)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_variables)]
// no-prefer-dynamic
// ignore-cross-compile

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:lint-for-crate.rs
// ignore-stage1
// compile-flags: -D crate-not-okay

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_imports)]
#![allow(unused_must_use)]
// pretty-expanded FIXME #23616

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:issue-16822.rs
extern crate issue_16822 as lib;

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:issue-18502.rs
extern crate issue_18502 as fmt;

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:issue-24106.rs
extern crate issue_24106;

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#![feature(rustc_private)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![feature(rustc_private)]

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:issue-40001-plugin.rs
// ignore-stage1

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#![feature(rustc_private)]

View File

@ -1,3 +1,4 @@
// run-pass
// Issue #4036: Test for an issue that arose around fixing up type inference
// byproducts in vtable records.

View File

@ -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

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:llvm-pass-plugin.rs
// ignore-stage1

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:lto-syntax-extension-lib.rs
// aux-build:lto-syntax-extension-plugin.rs
// compile-flags:-C lto

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(plugin_as_library)]
#![allow(dead_code)]
#![allow(unused_variables)]

View File

@ -1,3 +1,4 @@
// run-pass
// Testing that a libsyntax can parse modules with canonicalized base path
// ignore-cross-compile

View File

@ -1 +1,3 @@
// run-pass
pub fn foo() -> isize { 10 }

View File

@ -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.

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(rustc_private)]
extern crate rustc_data_structures;

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:outlive-expansion-phase.rs
// ignore-stage1

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:plugin-args.rs
// ignore-stage1

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:plugin-args.rs
// ignore-stage1

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:plugin-args.rs
// ignore-stage1

View File

@ -1,3 +1,4 @@
// run-pass
// ignore-cross-compile
// The general idea of this test is to enumerate all "interesting" expressions and check that

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_must_use)]
#![allow(unused_imports)]
// This test can't be a unit test in std,

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:roman-numerals.rs
// ignore-stage1

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(rustc_private)]
#[allow(dead_code)]

View File

@ -1,3 +1,4 @@
// run-pass
// ignore-cross-compile
use std::env;

View File

@ -1,3 +1,5 @@
// run-pass
use std::env;
use std::fs::File;
use std::io::{Read, Write};

View File

@ -1,3 +1,4 @@
// run-pass
// ignore-cross-compile
// ignore-stage1

View File

@ -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

View File

@ -1,3 +1,4 @@
// run-pass
// Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified.

View File

@ -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.

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(stable_features)]
#![allow(unused_variables)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(stable_features)]
#![feature(allocator_api, nonnull)]

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with

View File

@ -1,3 +1,5 @@
// run-pass
struct X {
x: isize
}

View File

@ -1,3 +1,5 @@
// run-pass
fn f() -> isize { { return 3; } }
pub fn main() { assert_eq!(f(), 3); }

View File

@ -1,3 +1,5 @@
// run-pass
fn main() {
assert_eq!(3 as usize * 3, 9);
assert_eq!(3 as (usize) * 3, 9);

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-emscripten no asm

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(asm)]
#![allow(dead_code)]

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(asm)]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(asm)]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(asm)]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

View File

@ -1,3 +1,5 @@
// run-pass
fn main() {
assert_eq!(1, 1,);
}

View File

@ -1,3 +1,5 @@
// run-pass
fn main() {
assert!(r#"☃\backslash"#.contains("\\"));
}

View File

@ -1,3 +1,5 @@
// run-pass
fn main() {
assert_ne!(1, 2,);
}

View File

@ -1,3 +1,4 @@
// run-pass
// Issue 483 - Assignment expressions result in nil
fn test_assign() {

View File

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

View File

@ -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

View File

@ -1,3 +1,5 @@
// run-pass
trait Foo: Iterator<Item = i32> {}
trait Bar: Foo {}

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(stable_features)]
#![feature(atomic_access)]
use std::sync::atomic::AtomicBool;

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(cfg_target_has_atomic)]
#![feature(integer_atomics)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(stable_features)]
#![feature(extended_compare_and_swap)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_must_use)]
#![allow(deprecated)]
// ignore-cloudabi no process support

View File

@ -1,3 +1,5 @@
// run-pass
#![feature(main)]
pub fn main() {

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
#![feature(main)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(stable_features)]
#![feature(rust1)]
pub fn main() { }

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
#![feature(start)]

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
#![feature(main)]

View File

@ -1,3 +1,4 @@
// run-pass
// aux-build:augmented_assignments.rs
extern crate augmented_assignments;

View File

@ -1,3 +1,5 @@
// run-pass
use std::ops::AddAssign;
struct Int(i32);

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(unused_imports)]
#![deny(unused_assignments)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#[derive(Debug)]
struct Pair<T, U> { a: T, b: U }

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(path_statements)]
#![allow(dead_code)]
macro_rules! auto {

View File

@ -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]); }

View File

@ -1,3 +1,4 @@
// run-pass
// ignore-test: not a test, used by backtrace-debuginfo.rs to test file!()
#[inline(never)]

View File

@ -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

View File

@ -1,3 +1,4 @@
// run-pass
// ignore-android FIXME #17520
// ignore-cloudabi spawning processes is not supported
// ignore-emscripten spawning processes is not supported

View File

@ -1,3 +1,5 @@
// run-pass
use std::ops::FnMut;
fn call_f<F:FnMut()>(mut f: F) {

View File

@ -1,3 +1,5 @@
// run-pass
pub fn main() {
let x: &'static str = "foo";
println!("{}", x);

View File

@ -1,3 +1,4 @@
// run-pass
// Catch mistakes in the overflowing literals lint.
#![deny(overflowing_literals)]

View File

@ -1,3 +1,4 @@
// run-pass
// Check that issue #954 stays fixed

View File

@ -1,3 +1,5 @@
// run-pass
use std::sync::Arc;
fn dispose(_x: Arc<bool>) { }

View File

@ -1,3 +1,4 @@
// run-pass
// Check that partially moved from function parameters are dropped after the
// named bindings that move from them.

View File

@ -1,3 +1,5 @@
// run-pass
use std::ops::Mul;
#[derive(Copy, Clone)]

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(non_camel_case_types)]
// Binop corner cases

View File

@ -1,3 +1,5 @@
// run-pass
#[cfg(any(target_pointer_width = "32"))]
fn target() {
assert_eq!(-1000isize as usize >> 3_usize, 536870787_usize);

View File

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]
mod bar {

View File

@ -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

View File

@ -1,3 +1,4 @@
// run-pass
// pretty-expanded FIXME #23616
mod m {

View File

@ -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