Add #![allow(..)] as necessary to get re-migrated run-pass tests compiling with clean stderr again.

Most were added mechanically.
This commit is contained in:
Felix S. Klock II 2018-09-25 23:51:35 +02:00
parent 2080474c75
commit c9d9cc6e44
822 changed files with 1030 additions and 67 deletions

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(stable_features)]
#![feature(const_indexing)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Checks that mutable static items can have mutable slices

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_assignments)]
pub fn main() {
let x : &[isize] = &[1,2,3,4,5];

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test slicing sugar.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_mut)]
pub fn main() {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
#![feature(slice_patterns)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
struct Foo;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// aux-build:associated-types-cc-lib.rs
// Test that we are able to reference cross-crate traits that employ

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when equivalent predicates
// (modulo bound lifetime names) appears in the environment
// twice. Issue #21965.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when the same predicate
// appears in the environment twice. Issue #21965.

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_imports)]
// Test how resolving a projection interacts with inference. In this
// case, we were eagerly unifying the type variable for the iterator
// type with `I` from the where clause, ignoring the in-scope `impl`

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Regression test for #21212: an overflow occurred during trait
// checking where normalizing `Self::Input` led to normalizing the
// where clauses in the environment which in turn required normalizing

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test that we can resolve nested projection types. Issue #20666.
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test that we normalize associated types that appear in a bound that
// contains a binding. Issue #21664.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test that we normalize associated types that appear in bounds; if
// we didn't, the call to `self.split2()` fails to type check.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test that we normalize associated types that appear in bounds; if
// we didn't, the call to `self.split2()` fails to type check.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_variables)]
// Test that we correctly handle projection bounds appearing in the
// supertrait list (and in conjunction with overloaded operators). In
// this case, the `Result=Self` binding in the supertrait listing of

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Corrected regression test for #20831. The original did not compile.
// When fixed, it revealed another problem concerning projections that
// appear in associated type bindings in object types, which were not

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Test that we are handle to correctly handle a projection type
// that appears in a supertrait bound. Issue #20559.

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// Test a where clause that uses a non-normalized projection type.
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Regression test for #20582. This test caused an ICE related to
// inconsistent region erasure in codegen.

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
// Test paths to associated types using the type-parameter-only sugar.
use std::ops::Deref;

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Test how resolving a projection interacts with inference. In this
// case, we were eagerly unifying the type variable for the iterator
// type with `I` from the where clause, ignoring the in-scope `impl`

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct Foo {

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(non_shorthand_field_patterns)]
pub fn main() {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
enum color {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Test that we do not leak when the arg pattern must drop part of the
// argument (in this case, the `y` field).

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
pub fn main() {
let x = Some(3);

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn foo(_: &[&str]) {}

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// compile-flags: -g
#[derive(PartialEq, Eq)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unreachable_code)]
// n.b. This was only ever failing with optimization disabled.
fn a() -> isize { match return 1 { 2 => 3, _ => panic!() } }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// regression test for issue #5625

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E {
Foo{f : isize},

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_mut)]
fn foo<T>(y: Option<T>) {
let mut x: isize;
let mut rs: Vec<isize> = Vec::new();

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct X { x: isize }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
enum maybe<T> { nothing, just(T), }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_assignments)]
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
#![allow(unused_variables)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Issue #53
#![allow(non_camel_case_types)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_mut)]
#![allow(non_camel_case_types)]

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(non_camel_case_types)]
#![allow(non_shorthand_field_patterns)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct Foo { foo: bool, bar: Option<isize>, baz: isize }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
// a bug was causing this to complain about leaked memory on exit

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_unsafe)]
// ignore-pretty issue #37199
#![allow(while_true)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(non_camel_case_types)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
// revisions: ast mir

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_variables)]
// Test that freezing an `&mut` pointer while referent is
// frozen is legal.
//

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(unused_mut)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616
#![feature(box_syntax)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unconditional_recursion)]
// Check that we do not ICE when compiling this

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// Test case from #39963.
#![feature(nll)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// ignore-pretty issue #37199
fn match_ref(v: Option<isize>) -> isize {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Regression test for issue #7740
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_imports)]
// This test verifies that casting from the same lifetime on a value
// to the same lifetime on a trait succeeds. See issue #10766.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
enum Foo {

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_variables)]
#![deny(non_snake_case)]
#![feature(stmt_expr_attributes)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(improper_ctypes)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
use std::rc::Rc;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn negate(x: &isize) -> isize {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn sum(x: &[isize]) -> isize {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
use std::rc::Rc;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_imports)]
// aux-build:coherence_lib.rs
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// aux-build:coherence_lib.rs
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
pub fn main() {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// aux-build:coherence_lib.rs
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// aux-build:coherence_lib.rs
// pretty-expanded FIXME #23616

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_imports)]
// pretty-expanded FIXME #23616
use std::fmt::Debug;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
#![feature(optin_builtin_traits)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Test that we are able to introduce a negative constraint that
// `MyType: !MyTrait` along with other "fundamental" wrappers.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(deprecated)]
use std::mem;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// General test that function items in static blocks
// can be generated with a macro.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_imports)]
mod foo {
pub trait Value {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// Make sure const bounds work on things, and test that a few types
// are const.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V, VV(isize) }
static C: E = E::V;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V, VV(isize) }
static C: E = E::V;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
enum A { A1, A2 }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V0, V1(isize) }
static C: &'static E = &E::V0;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V16(u16), V32(u32) }
struct S { a: E, b: u16, c: u16 }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V0, V16(u16) }
struct S { a: E, b: u16, c: u16 }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E {
S0 { s: String },

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V16(u16), V32(u32) }
static C: (E, u16, u16) = (E::V16(0xDEAD), 0x600D, 0xBAD);

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V0, V16(u16) }
static C: (E, u16, u16) = (E::V0, 0x600D, 0xBAD);

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V16(u16), V32(u32) }
struct S(E, u16, u16);

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum E { V0, V16(u16) }
struct S(E, u16, u16);

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// check for const_err regressions
#![deny(const_err)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
const x : [isize; 4] = [1,2,3,4];

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![feature(min_const_fn)]
const fn add(x: usize, y: usize) -> usize {

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// Test use of const fn from another crate without a feature gate.
// aux-build:const_fn_lib.rs

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
const ARR: [usize; 1] = [2];
const ARR2: [i32; ARR[0]] = [5, 6];

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
enum Foo {
Bar,

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unreachable_patterns)]
#![feature(min_const_fn)]
#[derive(PartialEq, Eq)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(overflowing_literals)]

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
type Big = [u64; 8];

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
#![feature(min_const_fn)]
use std::mem;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unused_imports)]
use std::{str, string};
const A: [u8; 2] = ['h' as u8, 'i' as u8];

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]

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