Skip to content

Commit f7849c7

Browse files
committed
Allow various lints to silence compiler warnings.
1 parent 5ed5a0d commit f7849c7

Some content is hidden

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

75 files changed

+82
-2
lines changed

src/test/ui/run-pass/alias-uninit-value.rs

+1-1
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
// Regression test for issue #374
1515

src/test/ui/run-pass/alignment-gep-tup-like-1.rs

+1
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
#![feature(box_syntax)]
1415

src/test/ui/run-pass/alloca-from-derived-tydesc.rs

+1
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/atomic-access-bool.rs

+1
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(atomic_access)]
1415
use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT};

src/test/ui/run-pass/atomic-compare_exchange.rs

+1-1
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(stable_features)]
1313
#![feature(extended_compare_and_swap)]
1414
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
1515
use std::sync::atomic::Ordering::*;

src/test/ui/run-pass/atomic-print.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// ignore-cloudabi no process support
1415
// ignore-emscripten no threads support

src/test/ui/run-pass/attr-mix-new.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unknown_lints)]
1213
// pretty-expanded FIXME #23616
1314

1415
#![allow(unused_attribute)]

src/test/ui/run-pass/binops.rs

+1
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
// Binop corner cases
1415

src/test/ui/run-pass/command-before-exec.rs

+1
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
// ignore-windows - this is a unix-specific test
1415
// ignore-cloudabi no processes

src/test/ui/run-pass/command-exec.rs

+1
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
// ignore-windows - this is a unix-specific test
1415
// ignore-pretty issue #37199

src/test/ui/run-pass/complex.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

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

1315

1416

src/test/ui/run-pass/core-run-destroy.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

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

1315
// compile-flags:--test
1416
// ignore-cloudabi no processes

src/test/ui/run-pass/discriminant_value.rs

+1
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(core, core_intrinsics)]
1415

src/test/ui/run-pass/early-vtbl-resolution.rs

+1
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
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/env-home-dir.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// ignore-cloudabi no environment variables present
1415
// ignore-emscripten env vars don't work?

src/test/ui/run-pass/estr-uniq.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314

1415
#![allow(dead_assignment)]

src/test/ui/run-pass/export-glob-imports-target.rs

+1
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
// Test that a glob-export functions as an import
1415
// when referenced within its own local scope.

src/test/ui/run-pass/format-hygiene.rs

+1
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
pub const arg0: u8 = 1;
1415

src/test/ui/run-pass/fsu-moves-and-copies.rs

+2
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(stable_features)]
1214

1315
// Issue 4691: Ensure that functional-struct-updates operates
1416
// correctly and moves rather than copy when appropriate.

src/test/ui/run-pass/guards-not-exhaustive.rs

+1
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_snake_case)]
1213

1314

1415
#[derive(Copy, Clone)]

src/test/ui/run-pass/guards.rs

+1
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

1415
#[derive(Copy, Clone)]

src/test/ui/run-pass/hashmap-memory.rs

+1
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
// ignore-emscripten No support for threads
1415

src/test/ui/run-pass/html-literals.rs

+1
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
// A test of the macro system. Can we do HTML literals?
1415

src/test/ui/run-pass/ignore-all-the-things.rs

+1
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
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/init-res-into-things.rs

+1
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
#![feature(box_syntax)]
1415

src/test/ui/run-pass/instantiable.rs

+1
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
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/item-attributes.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(non_camel_case_types)]
13+
#![allow(non_upper_case_globals)]
14+
#![allow(unknown_lints)]
1215

1316
// These are attributes of the implicit crate. Really this just needs to parse
1417
// for completeness since .rs files linked from .rc files support this

src/test/ui/run-pass/link-section.rs

+1
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
#[cfg(not(target_os = "macos"))]
1415
#[link_section=".moretext"]

src/test/ui/run-pass/list.rs

+1
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
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/log-knows-the-names-of-variants-in-std.rs

+1
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
#[derive(Clone, Debug)]
1415
enum foo {

src/test/ui/run-pass/log-knows-the-names-of-variants.rs

+1
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
#[derive(Debug)]
1415
enum foo {

src/test/ui/run-pass/max-min-classes.rs

+1
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_snake_case)]
1213

1314
trait Product {
1415
fn product(&self) -> isize;

src/test/ui/run-pass/monad.rs

+1
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

src/test/ui/run-pass/monomorphize-abi-alignment.rs

+1
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
/*!
1415
* On x86_64-linux-gnu and possibly other platforms, structs get 8-byte "preferred" alignment,

src/test/ui/run-pass/mutual-recursion-group.rs

+1
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/nested-class.rs

+1
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
pub fn main() {

src/test/ui/run-pass/newtype-polymorphic.rs

+1
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

src/test/ui/run-pass/newtype.rs

+1
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
#[derive(Copy, Clone)]
1415
struct mytype(Mytype);

src/test/ui/run-pass/nil-decl-in-foreign.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// Issue #901
1415
// pretty-expanded FIXME #23616

src/test/ui/run-pass/no-core-1.rs

+1
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(no_core, core)]
1415
#![no_core]

src/test/ui/run-pass/option-unwrap.rs

+1
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
use std::cell::Cell;
1415

src/test/ui/run-pass/out-of-stack.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// ignore-android: FIXME (#20004)
1415
// ignore-musl

src/test/ui/run-pass/output-slot-variants.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/paths-containing-nul.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// ignore-cloudabi no files or I/O
1415
// ignore-wasm32-bare no files or I/O

src/test/ui/run-pass/range.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// Test range syntax.
1415

src/test/ui/run-pass/range_inclusive_gate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
// Test that you only need the syntax gate if you don't mention the structs.
1415
// (Obsoleted since both features are stabilized)

src/test/ui/run-pass/rcvr-borrowed-to-region.rs

+1
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
#![feature(box_syntax)]
1415

src/test/ui/run-pass/ret-none.rs

+1
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

src/test/ui/run-pass/shadow.rs

+1
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
fn foo(c: Vec<isize> ) {
1415
let a: isize = 5;

0 commit comments

Comments
 (0)