1
Fork 0

Auto merge of #54223 - pnkfelix:issue-53764-uiify-run-pass, r=nikomatsakis

`ui`ify run-pass

This addresses the remainder of #53764 by first converting `src/test/run-pass` into another `ui`-style test suite, and then turning on `compare-mode=nll` for that new suite.

After this lands, we can address #54047 for the short term by moving all the `src/test/ui/run-pass` tests back to `src/test/run-pass`.

(Longer term, the compiler team's current (hypothetical sketch of a) plan (see [1][], [2][]) is unify all the tests by embedding these meta-properties like "// run-pass` into their headers explicitly and dropping the significance of their location on the file system.)

[1]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/subject/weekly.20meeting.202018-09-13/near/133889370
[2]: https://github.com/rust-lang/rust/issues/54047#issuecomment-421030356
This commit is contained in:
bors 2018-09-21 20:54:57 +00:00
commit 63c75d375d
238 changed files with 463 additions and 20 deletions

View file

@ -755,10 +755,11 @@ default_test_with_compare_mode!(Ui {
compare_mode: "nll" compare_mode: "nll"
}); });
default_test!(RunPass { default_test_with_compare_mode!(RunPass {
path: "src/test/run-pass", path: "src/test/run-pass",
mode: "run-pass", mode: "run-pass",
suite: "run-pass" suite: "run-pass",
compare_mode: "nll"
}); });
default_test!(CompileFail { default_test!(CompileFail {

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// ignore-cross-compile // ignore-cross-compile
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -0,0 +1,6 @@
warning: `#[derive]` for custom traits is deprecated and will be removed in the future. Prefer using procedural macro custom derive.
--> $DIR/custom-derive-partial-eq.rs:17:10
|
LL | #[derive(CustomPartialEq)] // Check that this is not a stability error.
| ^^^^^^^^^^^^^^^

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![no_std] #![no_std]

View file

@ -8,16 +8,18 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
use serialize as rustc_serialize;
use serialize::{Encodable, Decodable}; use serialize::{Encodable, Decodable};
use serialize::json; use serialize::json;
#[derive(Encodable, Decodable)] #[derive(RustcEncodable, RustcDecodable)]
struct A { struct A {
foo: Box<[bool]>, foo: Box<[bool]>,
} }

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// This briefly tests the capability of `Cell` and `RefCell` to implement the // This briefly tests the capability of `Cell` and `RefCell` to implement the
// `Encodable` and `Decodable` traits via `#[derive(Encodable, Decodable)]` // `Encodable` and `Decodable` traits via `#[derive(Encodable, Decodable)]`
@ -15,17 +16,18 @@
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
use serialize as rustc_serialize;
use std::cell::{Cell, RefCell}; use std::cell::{Cell, RefCell};
use serialize::{Encodable, Decodable}; use serialize::{Encodable, Decodable};
use serialize::json; use serialize::json;
#[derive(Encodable, Decodable)] #[derive(RustcEncodable, RustcDecodable)]
struct A { struct A {
baz: isize baz: isize
} }
#[derive(Encodable, Decodable)] #[derive(RustcEncodable, RustcDecodable)]
struct B { struct B {
foo: Cell<bool>, foo: Cell<bool>,
bar: RefCell<A>, bar: RefCell<A>,

View file

@ -11,6 +11,7 @@
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
use serialize as rustc_serialize;
mod submod { mod submod {
// if any of these are implemented without global calls for any // if any of these are implemented without global calls for any
@ -20,21 +21,21 @@ mod submod {
Hash, Hash,
Clone, Clone,
Debug, Debug,
Encodable, Decodable)] RustcEncodable, RustcDecodable)]
enum A { A1(usize), A2(isize) } enum A { A1(usize), A2(isize) }
#[derive(PartialEq, PartialOrd, Eq, Ord, #[derive(PartialEq, PartialOrd, Eq, Ord,
Hash, Hash,
Clone, Clone,
Debug, Debug,
Encodable, Decodable)] RustcEncodable, RustcDecodable)]
struct B { x: usize, y: isize } struct B { x: usize, y: isize }
#[derive(PartialEq, PartialOrd, Eq, Ord, #[derive(PartialEq, PartialOrd, Eq, Ord,
Hash, Hash,
Clone, Clone,
Debug, Debug,
Encodable, Decodable)] RustcEncodable, RustcDecodable)]
struct C(usize, isize); struct C(usize, isize);
} }

View file

@ -8,8 +8,10 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_upper_case_globals)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
use serialize as rustc_serialize;
pub const other: u8 = 1; pub const other: u8 = 1;
pub const f: u8 = 1; pub const f: u8 = 1;
@ -18,7 +20,7 @@ pub const s: u8 = 1;
pub const state: u8 = 1; pub const state: u8 = 1;
pub const cmp: u8 = 1; pub const cmp: u8 = 1;
#[derive(Ord,Eq,PartialOrd,PartialEq,Debug,Decodable,Encodable,Hash)] #[derive(Ord,Eq,PartialOrd,PartialEq,Debug,RustcDecodable,RustcEncodable,Hash)]
struct Foo {} struct Foo {}
fn main() { fn main() {

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unknown_lints)]
// Check that an arena (TypedArena) can carry elements whose drop // Check that an arena (TypedArena) can carry elements whose drop
// methods might access borrowed data, as long as the borrowed data // methods might access borrowed data, as long as the borrowed data
// has lifetime that strictly outlives the arena itself. // has lifetime that strictly outlives the arena itself.

View file

@ -8,10 +8,14 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(dead_code)]
#![allow(unused_imports)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
use serialize as rustc_serialize;
use std::io::Cursor; use std::io::Cursor;
use std::io::prelude::*; use std::io::prelude::*;
@ -22,12 +26,12 @@ use serialize::{Encodable, Encoder};
use serialize::json; use serialize::json;
use serialize::opaque; use serialize::opaque;
#[derive(Encodable)] #[derive(RustcEncodable)]
struct Foo { struct Foo {
baz: bool, baz: bool,
} }
#[derive(Encodable)] #[derive(RustcEncodable)]
struct Bar { struct Bar {
froboz: usize, froboz: usize,
} }

View file

@ -8,14 +8,17 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_mut)]
#![allow(unused_imports)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;
extern crate serialize as rustc_serialize;
use serialize::{Encodable, Decodable}; use serialize::{Encodable, Decodable};
use serialize::json; use serialize::json;
#[derive(Encodable, Decodable, PartialEq, Debug)] #[derive(RustcEncodable, RustcDecodable, PartialEq, Debug)]
struct UnitLikeStruct; struct UnitLikeStruct;
pub fn main() { pub fn main() {

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
// no-prefer-dynamic // no-prefer-dynamic
// ignore-cross-compile // ignore-cross-compile

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
#![allow(unused_must_use)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_imports)]
// ignore-cross-compile // ignore-cross-compile
#![feature(quote, rustc_private)] #![feature(quote, rustc_private)]

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate serialize; extern crate serialize;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// aux-build:custom_derive_plugin.rs // aux-build:custom_derive_plugin.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(plugin_as_library)]
#![allow(unused_imports)]
// aux-build:macro_crate_test.rs // aux-build:macro_crate_test.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(plugin_as_library)]
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
// aux-build:macro_crate_test.rs // aux-build:macro_crate_test.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(plugin_as_library)]
#![allow(dead_code)]
// aux-build:macro_crate_test.rs // aux-build:macro_crate_test.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_parens)]
// aux-build:cond_plugin.rs // aux-build:cond_plugin.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
#![allow(unused_imports)]
// aux-build:call-site.rs // aux-build:call-site.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// aux-build:derive-attr-cfg.rs // aux-build:derive-attr-cfg.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(path_statements)]
#![allow(dead_code)]
// aux-build:derive-same-struct.rs // aux-build:derive-same-struct.rs
// ignore-stage1 // ignore-stage1

View file

@ -0,0 +1 @@
input1: "struct A;"

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// aux-build:derive-two-attrs.rs // aux-build:derive-two-attrs.rs
extern crate derive_two_attrs as foo; extern crate derive_two_attrs as foo;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
// aux-build:derive-union.rs // aux-build:derive-union.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// aux-build:empty-crate.rs // aux-build:empty-crate.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_macros)]
// aux-build:hygiene_example_codegen.rs // aux-build:hygiene_example_codegen.rs
// aux-build:hygiene_example.rs // aux-build:hygiene_example.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// aux-build:issue-39889.rs // aux-build:issue-39889.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(path_statements)]
// aux-build:issue-50061.rs // aux-build:issue-50061.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
// aux-build:lifetimes.rs // aux-build:lifetimes.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(path_statements)]
#![allow(dead_code)]
// aux-build:derive-atob.rs // aux-build:derive-atob.rs
// aux-build:derive-ctod.rs // aux-build:derive-ctod.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(path_statements)]
// aux-build:derive-a.rs // aux-build:derive-a.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// aux-build:derive-nothing.rs // aux-build:derive-nothing.rs
// ignore-stage1 // ignore-stage1

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// ignore-cross-compile // ignore-cross-compile
#![feature(quote, rustc_private)] #![feature(quote, rustc_private)]

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
// ignore-cross-compile // ignore-cross-compile
#![feature(quote, rustc_private)] #![feature(quote, rustc_private)]

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// ignore-cross-compile // ignore-cross-compile
#![feature(quote, rustc_private)] #![feature(quote, rustc_private)]
#![deny(unused_variables)] #![deny(unused_variables)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_imports)]
// Test a sample usage pattern for regions. Makes use of the // Test a sample usage pattern for regions. Makes use of the
// following features: // following features:

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(unused_imports)]
// This test can't be a unit test in std, // This test can't be a unit test in std,
// because it needs TempDir, which is in extra // because it needs TempDir, which is in extra

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that // Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
// we never unwind through them. // we never unwind through them.

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// Regression test for issue #374 // Regression test for issue #374

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![allow(unused_variables)]
// #45662 // #45662
#![feature(repr_align)] #![feature(repr_align)]

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![feature(box_syntax)] #![feature(box_syntax)]
struct pair<A,B> { struct pair<A,B> {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![feature(allocator_api, nonnull)] #![feature(allocator_api, nonnull)]
use std::alloc::{Alloc, Global, Layout, handle_alloc_error}; use std::alloc::{Alloc, Global, Layout, handle_alloc_error};

View file

@ -12,6 +12,7 @@
//[mir]compile-flags: -Z borrowck=mir //[mir]compile-flags: -Z borrowck=mir
#![feature(asm)] #![feature(asm)]
#![allow(dead_code)]
use std::cell::Cell; use std::cell::Cell;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![feature(atomic_access)] #![feature(atomic_access)]
use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT}; use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT};
use std::sync::atomic::Ordering::*; use std::sync::atomic::Ordering::*;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![feature(extended_compare_and_swap)] #![feature(extended_compare_and_swap)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT}; use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
use std::sync::atomic::Ordering::*; use std::sync::atomic::Ordering::*;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(deprecated)]
// ignore-cloudabi no process support // ignore-cloudabi no process support
// ignore-emscripten no threads support // ignore-emscripten no threads support

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_attributes)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![feature(custom_attribute, test)] #![feature(custom_attribute, test)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_attributes)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![feature(custom_attribute, test)] #![feature(custom_attribute, test)]

View file

@ -7,6 +7,10 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_attributes)]
#![allow(unknown_lints)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![allow(unused_attribute)] #![allow(unused_attribute)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_attributes)]
// This test ensures we can attach attributes to the formals in all // This test ensures we can attach attributes to the formals in all
// places where generic parameter lists occur, assuming appropriate // places where generic parameter lists occur, assuming appropriate
// feature gates are enabled. // feature gates are enabled.

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
#![deny(unused_assignments)] #![deny(unused_assignments)]
use std::mem; use std::mem;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#[derive(Debug)] #[derive(Debug)]
struct Pair<T, U> { a: T, b: U } struct Pair<T, U> { a: T, b: U }
struct Triple { x: isize, y: isize, z: isize } struct Triple { x: isize, y: isize, z: isize }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(path_statements)]
#![allow(dead_code)]
macro_rules! auto { macro_rules! auto {
() => (struct S;) () => (struct S;)
} }

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
// Binop corner cases // Binop corner cases
fn test_nil() { fn test_nil() {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_imports)]
mod bar { mod bar {
pub fn foo() -> bool { true } pub fn foo() -> bool { true }
} }

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_snake_case)]
fn asBlock<F>(f: F) -> usize where F: FnOnce() -> usize { fn asBlock<F>(f: F) -> usize where F: FnOnce() -> usize {
return f(); return f();

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(unused_parens)]
// This test has some extra semis in it that the pretty-printer won't // This test has some extra semis in it that the pretty-printer won't
// reproduce so we don't want to automatically reformat it // reproduce so we don't want to automatically reformat it

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
#![allow(unused_imports)]
// ignore-wasm32-bare compiled with panic=abort by default // ignore-wasm32-bare compiled with panic=abort by default
// Test that builtin implementations of `Clone` cleanup everything // Test that builtin implementations of `Clone` cleanup everything

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// aux-build:trait_superkinds_in_metadata.rs // aux-build:trait_superkinds_in_metadata.rs

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// Tests that even when a type parameter doesn't implement a required // Tests that even when a type parameter doesn't implement a required
// super-builtin-kind of a trait, if the type parameter is never used, // super-builtin-kind of a trait, if the type parameter is never used,
// the type can implement the trait anyway. // the type can implement the trait anyway.

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_assignments)]
#![allow(unused_variables)]
pub fn main() { pub fn main() {
let i: isize = 'Q' as isize; let i: isize = 'Q' as isize;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
use std::cell::Cell; use std::cell::Cell;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// Static recursion check shouldn't fail when given a foreign item (#18279) // Static recursion check shouldn't fail when given a foreign item (#18279)
// aux-build:check_static_recursion_foreign_helper.rs // aux-build:check_static_recursion_foreign_helper.rs

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![allow(unused_imports)]
// Test that cleanup scope for temporaries created in a match // Test that cleanup scope for temporaries created in a match
// arm is confined to the match arm itself. // arm is confined to the match arm itself.

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_snake_case)]
#![allow(dead_code)]
#![allow(unused_variables)]
// Test that the lifetime of rvalues in for loops is extended // Test that the lifetime of rvalues in for loops is extended
// to the for loop itself. // to the for loop itself.

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_snake_case)]
#![allow(unused_variables)]
// Test that destructors for rvalue temporaries run either at end of // Test that destructors for rvalue temporaries run either at end of
// statement or end of block, as appropriate given the temporary // statement or end of block, as appropriate given the temporary
// lifetime rules. // lifetime rules.

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(dead_code)]
#![allow(unused_variables)]
// Test cleanup of rvalue temporary that occurs while `box` construction // Test cleanup of rvalue temporary that occurs while `box` construction
// is in progress. This scenario revealed a rather terrible bug. The // is in progress. This scenario revealed a rather terrible bug. The
// ingredients are: // ingredients are:

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
// ignore-emscripten no threads support // ignore-emscripten no threads support
#![feature(box_syntax)] #![feature(box_syntax)]

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// If we use GEPi rather than GEP_tup_like when // If we use GEPi rather than GEP_tup_like when
// storing closure data (as we used to do), the u64 would // storing closure data (as we used to do), the u64 would
// overwrite the u16. // overwrite the u16.

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// Test several functions can be used for constants // Test several functions can be used for constants
// 1. Vec::new() // 1. Vec::new()
// 2. String::new() // 2. String::new()

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
// ignore-windows - this is a unix-specific test // ignore-windows - this is a unix-specific test
// ignore-cloudabi no processes // ignore-cloudabi no processes
// ignore-emscripten no processes // ignore-emscripten no processes

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
// ignore-windows - this is a unix-specific test // ignore-windows - this is a unix-specific test
// ignore-pretty issue #37199 // ignore-pretty issue #37199
// ignore-cloudabi no processes // ignore-cloudabi no processes

View file

@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unconditional_recursion)]
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(unused_mut)]

View file

@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
#![allow(stable_features)]
#![allow(deprecated)]
#![allow(unused_imports)]
// compile-flags:--test // compile-flags:--test
// ignore-cloudabi no processes // ignore-cloudabi no processes
// ignore-emscripten no processes // ignore-emscripten no processes

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
// compile-flags:-C target-feature=-crt-static -Z unstable-options // compile-flags:-C target-feature=-crt-static -Z unstable-options
// ignore-musl - requires changing the linker which is hard // ignore-musl - requires changing the linker which is hard

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
// compile-flags:-C target-feature=+crt-static -Z unstable-options // compile-flags:-C target-feature=+crt-static -Z unstable-options
#![feature(cfg_target_feature)] #![feature(cfg_target_feature)]

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
trait Foo { trait Foo {
fn f(&self) { fn f(&self) {

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
trait Trait<T> {} trait Trait<T> {}
struct Foo<U, V=i32>(U, V) where U: Trait<V>; struct Foo<U, V=i32>(U, V) where U: Trait<V>;

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(stable_features)]
#![feature(core, core_intrinsics)] #![feature(core, core_intrinsics)]
extern crate core; extern crate core;

View file

@ -8,6 +8,10 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(unreachable_code)]
// Test various cases where we permit an unconstrained variable // Test various cases where we permit an unconstrained variable
// to fallback based on control-flow. // to fallback based on control-flow.
// //

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// Test a regression found when building compiler. The `produce()` // Test a regression found when building compiler. The `produce()`
// error type `T` winds up getting unified with result of `x.parse()`; // error type `T` winds up getting unified with result of `x.parse()`;
// the type of the closure given to `unwrap_or_else` needs to be // the type of the closure given to `unwrap_or_else` needs to be

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
fn check_expr() { fn check_expr() {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unreachable_code)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
use std::ops::Add; use std::ops::Add;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
trait thing<A> { trait thing<A> {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_mut)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
// edition:2015 // edition:2015
// aux-build:edition-kw-macro-2015.rs // aux-build:edition-kw-macro-2015.rs

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_mut)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
// edition:2015 // edition:2015
// aux-build:edition-kw-macro-2018.rs // aux-build:edition-kw-macro-2018.rs

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_assignments)]
// edition:2018 // edition:2018
// aux-build:edition-kw-macro-2015.rs // aux-build:edition-kw-macro-2015.rs

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_assignments)]
// edition:2018 // edition:2018
// aux-build:edition-kw-macro-2018.rs // aux-build:edition-kw-macro-2018.rs

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
pub fn main() { pub fn main() {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_variables)]
#![allow(deprecated)]
// ignore-cloudabi no environment variables present // ignore-cloudabi no environment variables present
// ignore-emscripten env vars don't work? // ignore-emscripten env vars don't work?

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_imports)]
// ignore-windows // ignore-windows
// ignore-wasm32-bare no libc to test ffi with // ignore-wasm32-bare no libc to test ffi with

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_variables)]
// Checks if the correct registers are being used to pass arguments // Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified. // when the sysv64 ABI is specified.

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_assignments)]
#![allow(unknown_lints)]
#![allow(dead_assignment)] #![allow(dead_assignment)]

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![feature(existential_type)] #![feature(existential_type)]
fn main() { fn main() {

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![allow(unused_must_use)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
pub fn main() { pub fn main() {

Some files were not shown because too many files have changed in this diff Show more