Skip to content

Commit e462c1a

Browse files
committed
Add #![allow(..)] for a slew of lints of migrated run-pass tests, to silence stderr output.
1 parent 90241df commit e462c1a

File tree

305 files changed

+516
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+516
-20
lines changed

src/test/ui/run-pass/array-slice-vec/array_const_index-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(stable_features)]
1213

1314
#![feature(const_indexing)]
1415

src/test/ui/run-pass/array-slice-vec/evec-slice.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// run-pass
1212

13-
#![allow(dead_assignment)]
14-
1513
pub fn main() {
1614
let x : &[isize] = &[1,2,3,4,5];
1715
let mut z : &[isize] = &[1,2,3,4,5];

src/test/ui/run-pass/array-slice-vec/rcvr-borrowed-to-slice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212

13+
#![allow(non_camel_case_types)]
1314

1415
trait sum {
1516
fn sum_(self) -> isize;

src/test/ui/run-pass/array-slice-vec/slice-of-zero-size-elements.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(stable_features)]
1213

1314
// compile-flags: -C debug-assertions
1415

src/test/ui/run-pass/array-slice-vec/vec-slice-drop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// run-pass
1212

13+
#![allow(non_camel_case_types)]
14+
1315
use std::cell::Cell;
1416

1517
// Make sure that destructors get run on slice literals

src/test/ui/run-pass/autoref-autoderef/autoderef-method-on-trait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213
#![feature(box_syntax)]
1314

1415
trait double {

src/test/ui/run-pass/autoref-autoderef/autoderef-method-priority.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213
#![feature(box_syntax)]
1314

1415
trait double {

src/test/ui/run-pass/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213
#![feature(box_syntax)]
1314

1415
trait double {

src/test/ui/run-pass/autoref-autoderef/autoderef-method-twice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213
#![feature(box_syntax)]
1314

1415
trait double {

src/test/ui/run-pass/autoref-autoderef/autoderef-method.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213
#![feature(box_syntax)]
1314

1415
trait double {

src/test/ui/run-pass/binding/bind-field-short-with-modifiers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_shorthand_field_patterns)]
1213

1314
pub fn main() {
1415
struct Foo { x: isize, y: isize }

src/test/ui/run-pass/binding/expr-match-generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12-
12+
#![allow(non_camel_case_types)]
1313

1414
type compare<T> = extern "Rust" fn(T, T) -> bool;
1515

src/test/ui/run-pass/binding/fat-arrow-match.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314
enum color {
1415
red,

src/test/ui/run-pass/binding/match-borrowed_str.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// run-pass
1212

13-
#![allow(unnecessary_allocation)]
14-
1513
fn f1(ref_string: &str) -> String {
1614
match ref_string {
1715
"a" => "found a".to_string(),

src/test/ui/run-pass/binding/match-implicit-copy-unique.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_shorthand_field_patterns)]
1213
#![feature(box_syntax)]
1314

1415
struct Pair { a: Box<isize>, b: Box<isize> }

src/test/ui/run-pass/binding/match-path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314

1415
// pretty-expanded FIXME #23616

src/test/ui/run-pass/binding/match-pattern-no-type-params.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
13+
1214
enum maybe<T> { nothing, just(T), }
1315

1416
fn foo(x: maybe<isize>) {

src/test/ui/run-pass/binding/match-phi.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
// run-pass
1212
// pretty-expanded FIXME #23616
13-
14-
#![allow(dead_assignment)]
13+
#![allow(non_camel_case_types)]
1514
#![allow(unused_variables)]
1615

1716
enum thing { a, b, c, }

src/test/ui/run-pass/binding/match-range-static.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
// pretty-expanded FIXME #23616
13+
#![allow(non_upper_case_globals)]
1314

1415
const s: isize = 1;
1516
const e: isize = 42;

src/test/ui/run-pass/binding/match-ref-binding-mut.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_shorthand_field_patterns)]
1213

1314
struct Rec {
1415
f: isize

src/test/ui/run-pass/binding/match-str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
// Issue #53
13+
#![allow(non_camel_case_types)]
1314

1415

1516
pub fn main() {

src/test/ui/run-pass/binding/match-tag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12-
12+
#![allow(non_camel_case_types)]
1313

1414

1515

src/test/ui/run-pass/binding/mut-in-ident-patterns.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
13+
#![allow(non_shorthand_field_patterns)]
1214

1315
trait Foo {
1416
fn foo(&self, mut x: isize) -> isize {

src/test/ui/run-pass/binding/nested-pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12-
12+
#![allow(non_camel_case_types)]
1313

1414
// a bug was causing this to complain about leaked memory on exit
1515

src/test/ui/run-pass/binding/nullary-or-pattern.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314
enum blah { a, b, }
1415

src/test/ui/run-pass/binding/optional_comma_in_match_arm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
// ignore-pretty issue #37199
13+
#![allow(while_true)]
1314

1415
fn main() {
1516
let x = 1;

src/test/ui/run-pass/binding/or-pattern.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314
enum blah { a(isize, isize, usize), b(isize, isize), c, }
1415

src/test/ui/run-pass/binding/pattern-in-closure.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_shorthand_field_patterns)]
13+
1214
struct Foo {
1315
x: isize,
1416
y: isize

src/test/ui/run-pass/binding/simple-generic-match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12-
12+
#![allow(non_camel_case_types)]
1313

1414
// pretty-expanded FIXME #23616
1515

src/test/ui/run-pass/binding/use-uninit-match.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314

1415
fn foo<T>(o: myoption<T>) -> isize {

src/test/ui/run-pass/binding/use-uninit-match2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
1213

1314

1415
fn foo<T>(o: myoption<T>) -> isize {

src/test/ui/run-pass/cfg/conditional-compile.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
13+
#![allow(non_camel_case_types)]
14+
#![allow(improper_ctypes)]
15+
1216
// Crate use statements
1317

1418
#[cfg(bogus)]

src/test/ui/run-pass/coherence/coherence-impl-in-fn.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
13+
1214
pub fn main() {
1315
#[derive(Copy, Clone)]
1416
enum x { foo }

src/test/ui/run-pass/consts/const-adt-align-mismatch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(deprecated)]
13+
1214
use std::mem;
1315

1416
#[derive(PartialEq, Debug)]

src/test/ui/run-pass/consts/const-cast-ptr-int.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
1213

1314
use std::ptr;
1415

src/test/ui/run-pass/consts/const-cast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
13+
1214
struct TestStruct {
1315
x: *const u8,
1416
}

src/test/ui/run-pass/consts/const-const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
1213

1314
const a: isize = 1;
1415
const b: isize = a + 2;

src/test/ui/run-pass/consts/const-contents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// run-pass
1212
// Issue #570
13-
13+
#![allow(non_upper_case_globals)]
1414

1515
static lsl : isize = 1 << 2;
1616
static add : isize = 1 + 2;

src/test/ui/run-pass/consts/const-cross-crate-const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// run-pass
1212
// aux-build:cci_const.rs
13-
13+
#![allow(non_upper_case_globals)]
1414

1515
extern crate cci_const;
1616
static foo: &'static str = cci_const::foopy;

src/test/ui/run-pass/consts/const-cross-crate-extern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// run-pass
1212
// aux-build:cci_const.rs
13-
13+
#![allow(non_upper_case_globals)]
1414

1515
extern crate cci_const;
1616
use cci_const::bar;

src/test/ui/run-pass/consts/const-enum-cast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
1213

1314
enum A { A1, A2 }
1415
enum B { B1=0, B2=2 }

src/test/ui/run-pass/consts/const-extern-function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
1213

1314
extern fn foopy() {}
1415

src/test/ui/run-pass/consts/const-fields-and-indexing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
13+
1214
const x : [isize; 4] = [1,2,3,4];
1315
static p : isize = x[2];
1416
const y : &'static [isize] = &[1,2,3,4];

src/test/ui/run-pass/consts/const-fn-val.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_upper_case_globals)]
1213

1314
fn foo() -> isize {
1415
return 0xca7f000d;

src/test/ui/run-pass/consts/const-negation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(overflowing_literals)]
13+
1214
#[deny(const_err)]
1315

1416
fn main() {

src/test/ui/run-pass/consts/const-negative.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// run-pass
1212
// Issue #358
13-
13+
#![allow(non_upper_case_globals)]
1414

1515
static toplevel_mod: isize = -1;
1616

0 commit comments

Comments
 (0)