Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, to silence stderr output.

This commit is contained in:
Felix S. Klock II 2018-08-31 15:02:01 +02:00
parent 90241dfba3
commit e462c1adc5
305 changed files with 516 additions and 20 deletions

View File

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

View File

@ -10,8 +10,6 @@
// run-pass
#![allow(dead_assignment)]
pub fn main() {
let x : &[isize] = &[1,2,3,4,5];
let mut z : &[isize] = &[1,2,3,4,5];

View File

@ -10,6 +10,7 @@
// run-pass
#![allow(non_camel_case_types)]
trait sum {
fn sum_(self) -> isize;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
// compile-flags: -C debug-assertions

View File

@ -10,6 +10,8 @@
// run-pass
#![allow(non_camel_case_types)]
use std::cell::Cell;
// Make sure that destructors get run on slice literals

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_shorthand_field_patterns)]
pub fn main() {
struct Foo { x: isize, y: isize }

View File

@ -9,7 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
type compare<T> = extern "Rust" fn(T, T) -> bool;

View File

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

View File

@ -10,8 +10,6 @@
// run-pass
#![allow(unnecessary_allocation)]
fn f1(ref_string: &str) -> String {
match ref_string {
"a" => "found a".to_string(),

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_shorthand_field_patterns)]
#![feature(box_syntax)]
struct Pair { a: Box<isize>, b: Box<isize> }

View File

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

View File

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

View File

@ -10,8 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(non_camel_case_types)]
#![allow(unused_variables)]
enum thing { a, b, c, }

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]
const s: isize = 1;
const e: isize = 42;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_shorthand_field_patterns)]
struct Rec {
f: isize

View File

@ -10,6 +10,7 @@
// run-pass
// Issue #53
#![allow(non_camel_case_types)]
pub fn main() {

View File

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

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
#![allow(non_shorthand_field_patterns)]
trait Foo {
fn foo(&self, mut x: isize) -> isize {

View File

@ -9,7 +9,7 @@
// except according to those terms.
// run-pass
#![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(non_camel_case_types)]
enum blah { a, b, }

View File

@ -10,6 +10,7 @@
// run-pass
// ignore-pretty issue #37199
#![allow(while_true)]
fn main() {
let x = 1;

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
enum blah { a(isize, isize, usize), b(isize, isize), c, }

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_shorthand_field_patterns)]
struct Foo {
x: isize,
y: isize

View File

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

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
fn foo<T>(o: myoption<T>) -> isize {

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
fn foo<T>(o: myoption<T>) -> isize {

View File

@ -9,6 +9,10 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(improper_ctypes)]
// Crate use statements
#[cfg(bogus)]

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
pub fn main() {
#[derive(Copy, Clone)]
enum x { foo }

View File

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

View File

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

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
struct TestStruct {
x: *const u8,
}

View File

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

View File

@ -10,7 +10,7 @@
// run-pass
// Issue #570
#![allow(non_upper_case_globals)]
static lsl : isize = 1 << 2;
static add : isize = 1 + 2;

View File

@ -10,7 +10,7 @@
// run-pass
// aux-build:cci_const.rs
#![allow(non_upper_case_globals)]
extern crate cci_const;
static foo: &'static str = cci_const::foopy;

View File

@ -10,7 +10,7 @@
// run-pass
// aux-build:cci_const.rs
#![allow(non_upper_case_globals)]
extern crate cci_const;
use cci_const::bar;

View File

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

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
extern fn foopy() {}

View File

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

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
fn foo() -> isize {
return 0xca7f000d;

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(overflowing_literals)]
#[deny(const_err)]
fn main() {

View File

@ -10,7 +10,7 @@
// run-pass
// Issue #358
#![allow(non_upper_case_globals)]
static toplevel_mod: isize = -1;

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
#![allow(overflowing_literals)]
struct Pair { a: f64, b: f64 }
struct AnotherPair { x: (i64, i64), y: Pair }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
type Big = [u64; 8];
struct Pair<'a> { a: isize, b: &'a Big }

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
struct Pair<'a> { a: isize, b: &'a isize }
const x: &'static isize = &10;

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]
enum Foo {
IntVal(i32),

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
use std::cmp;
#[derive(Debug)]

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]
/*!
* Try to double-check that static fns have the right size (with or

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
static x : [isize; 4] = [1,2,3,4];
static y : &'static [isize] = &[1,2,3,4];
static z : &'static [isize; 4] = &[1,2,3,4];

View File

@ -9,7 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
static i: isize = 10;

View File

@ -11,6 +11,7 @@
// run-pass
// aux-build:xcrate_unit_struct.rs
// pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]
extern crate xcrate_unit_struct;

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
pub type task_id = isize;

View File

@ -9,6 +9,10 @@
// except according to those terms.
// run-pass
#![allow(deprecated)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use std::hash::{Hash, SipHasher, Hasher};
use std::mem::size_of;

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
macro_rules! define_vec {
() => (

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(deprecated)]
use std::hash::{Hash, SipHasher};

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(deprecated)]
use std::hash::{Hash, SipHasher};

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
#![feature(box_syntax)]

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
// Test that destructor on a struct runs successfully after the struct
// is boxed and converted to an object.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
// Test a very simple custom DST coercion.
#![feature(core, rc_weak)]

View File

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

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
#![allow(type_alias_bounds)]
// As dst-tuple.rs, but the unsized field is the only field in the tuple.

View File

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

View File

@ -10,7 +10,7 @@
// run-pass
// Tests that we can compare various kinds of extern fn signatures.
#![allow(non_camel_case_types)]
extern fn voidret1() {}
extern fn voidret2() {}

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
use std::string::String;
#[derive(PartialEq)]

View File

@ -10,6 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
struct r<F> where F: FnOnce() {
field: F,

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
// Tests parallel codegen - this can fail if the symbol for the anonymous
// closure in `sum` pollutes the second codegen unit from the first.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
// just to make sure that `return` is only returning from the closure,
// not the surrounding function.

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
enum wrapper<T> { wrapped(T), }
pub fn main() { let _w = wrapper::wrapped(vec![1, 2, 3, 4, 5]); }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
#![feature(box_syntax)]
enum list<T> { cons(Box<T>, Box<list<T>>), nil, }

View File

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
trait vec_utils<T> {

View File

@ -9,7 +9,7 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
// This used to cause memory corruption in stage 0.

View File

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

View File

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

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
enum noption<T> { some(T), }
struct Pair { x: isize, y: isize }

View File

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

View File

@ -10,6 +10,7 @@
// run-pass
// ignore-emscripten no threads support
#![allow(stable_features)]
// This test is checking that the move_val_init intrinsic is
// respecting cleanups for both of its argument expressions.

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
static mut drop_count: usize = 0;
struct Foo {

View File

@ -10,6 +10,7 @@
// run-pass
// ignore-wasm32-bare can't block the thread
#![allow(deprecated)]
use std::thread;

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use std::ops::Deref;
struct Root {

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
const JSVAL_TAG_CLEAR: u32 = 0xFFFFFF80;
const JSVAL_TYPE_INT32: u8 = 0x01;
const JSVAL_TYPE_UNDEFINED: u8 = 0x02;

View File

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

View File

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

View File

@ -10,7 +10,7 @@
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_snake_case)]
#![allow(unused_variables)]
struct T { f: extern "Rust" fn() }

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
// pretty-expanded FIXME #23616
static mut n_mut: usize = 0;

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
#![feature(iter_arith)]
fn main() {

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_snake_case)]
use std::rc::Rc;
use std::cell::Cell;

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(deprecated)]
use std::hash::{SipHasher, Hasher, Hash};
#[derive(Hash)]

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
// pretty-expanded FIXME #23616
pub fn main() {

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
enum pattern { tabby, tortoiseshell, calico }
enum breed { beagle, rottweiler, pug }

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
const count : usize = 2 as usize;
fn main() {
let larger : [usize; count*2];

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_camel_case_types)]
// Issue #1821 - Don't recurse trying to typecheck this

View File

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

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
// ignore-cloudabi no processes
// ignore-emscripten no processes

View File

@ -9,6 +9,9 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
// aux-build:i8.rs
// ignore-pretty issue #37201

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(stable_features)]
// A reduced version of the rustbook ice. The problem this encountered
// had to do with codegen ignoring binders.

View File

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(non_upper_case_globals)]
extern crate core;
use core::marker::Sync;

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