提交 c9f2c2de 编写于 作者: F Felix S. Klock II

Allow various lints as part of ui-ifying `src/test/run-pass` suite.

上级 d28c5baf
...@@ -8,6 +8,7 @@ ...@@ -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.
......
...@@ -8,6 +8,9 @@ ...@@ -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
......
...@@ -8,6 +8,9 @@ ...@@ -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)]
......
...@@ -8,6 +8,9 @@ ...@@ -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> {
......
...@@ -8,6 +8,9 @@ ...@@ -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
......
...@@ -8,6 +8,8 @@ ...@@ -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};
......
...@@ -8,6 +8,7 @@ ...@@ -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::*;
......
...@@ -8,6 +8,8 @@ ...@@ -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::*;
......
...@@ -8,6 +8,8 @@ ...@@ -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
......
...@@ -8,6 +8,8 @@ ...@@ -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)]
......
...@@ -8,6 +8,8 @@ ...@@ -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)]
......
...@@ -7,6 +7,10 @@ ...@@ -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)]
......
...@@ -8,6 +8,8 @@ ...@@ -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.
......
...@@ -8,6 +8,7 @@ ...@@ -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;
......
...@@ -8,6 +8,7 @@ ...@@ -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 }
......
...@@ -8,6 +8,8 @@ ...@@ -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;)
} }
......
...@@ -8,6 +8,7 @@ ...@@ -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() {
......
...@@ -8,6 +8,8 @@ ...@@ -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 }
} }
......
...@@ -8,6 +8,7 @@ ...@@ -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();
......
...@@ -8,6 +8,8 @@ ...@@ -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
......
...@@ -8,6 +8,8 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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.
......
...@@ -8,6 +8,8 @@ ...@@ -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;
......
...@@ -8,6 +8,7 @@ ...@@ -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;
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,8 @@ ...@@ -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.
......
...@@ -8,6 +8,9 @@ ...@@ -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.
......
...@@ -8,6 +8,8 @@ ...@@ -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.
......
...@@ -8,6 +8,9 @@ ...@@ -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:
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,7 @@ ...@@ -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.
......
...@@ -8,6 +8,7 @@ ...@@ -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()
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,10 @@ ...@@ -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)]
......
...@@ -8,6 +8,10 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,7 @@ ...@@ -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) {
......
...@@ -8,6 +8,7 @@ ...@@ -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>;
......
...@@ -8,6 +8,7 @@ ...@@ -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;
......
...@@ -8,6 +8,10 @@ ...@@ -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.
// //
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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() {
......
...@@ -8,6 +8,8 @@ ...@@ -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;
......
...@@ -8,6 +8,8 @@ ...@@ -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> {
......
...@@ -8,6 +8,9 @@ ...@@ -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
......
...@@ -8,6 +8,9 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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() {
......
...@@ -8,6 +8,8 @@ ...@@ -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?
......
...@@ -8,6 +8,8 @@ ...@@ -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.
......
...@@ -8,6 +8,8 @@ ...@@ -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)]
......
...@@ -8,6 +8,9 @@ ...@@ -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() {
......
...@@ -8,6 +8,7 @@ ...@@ -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() {
......
...@@ -8,6 +8,8 @@ ...@@ -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_upper_case_globals)]
#![allow(dead_code)]
// Test that a glob-export functions as an import // Test that a glob-export functions as an import
// when referenced within its own local scope. // when referenced within its own local scope.
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// Issue #521 // Issue #521
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
......
...@@ -8,6 +8,7 @@ ...@@ -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;
......
...@@ -8,6 +8,7 @@ ...@@ -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
use std::ops::{Deref, DerefMut}; use std::ops::{Deref, DerefMut};
......
...@@ -8,6 +8,7 @@ ...@@ -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_upper_case_globals)]
pub const arg0: u8 = 1; pub const arg0: u8 = 1;
pub fn main() { pub fn main() {
......
...@@ -8,6 +8,8 @@ ...@@ -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(stable_features)]
// Issue 4691: Ensure that functional-struct-updates operates // Issue 4691: Ensure that functional-struct-updates operates
// correctly and moves rather than copy when appropriate. // correctly and moves rather than copy when appropriate.
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
enum Q { R(Option<usize>) } enum Q { R(Option<usize>) }
......
...@@ -8,6 +8,7 @@ ...@@ -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_shorthand_field_patterns)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
struct Pair { x: isize, y: isize } struct Pair { x: isize, y: isize }
......
...@@ -8,6 +8,9 @@ ...@@ -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)]
#![allow(unused_mut)]
// ignore-emscripten No support for threads // ignore-emscripten No support for threads
/** /**
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// A test of the macro system. Can we do HTML literals? // A test of the macro system. Can we do HTML literals?
/* /*
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
fn foo() { if (return) { } } fn foo() { if (return) { } }
......
...@@ -8,6 +8,9 @@ ...@@ -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_shorthand_field_patterns)]
#![allow(dead_code)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![feature(slice_patterns)] #![feature(slice_patterns)]
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// issue #680 // issue #680
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// Makes sure that zero-initializing large types is reasonably fast, // Makes sure that zero-initializing large types is reasonably fast,
// Doing it incorrectly causes massive slowdown in LLVM during // Doing it incorrectly causes massive slowdown in LLVM during
// optimisation. // optimisation.
......
...@@ -8,6 +8,8 @@ ...@@ -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(box_syntax)] #![feature(box_syntax)]
use std::cell::Cell; use std::cell::Cell;
......
...@@ -8,6 +8,8 @@ ...@@ -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
use std::ptr; use std::ptr;
......
...@@ -8,6 +8,7 @@ ...@@ -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_mut)]
// ignore-wasm32 // ignore-wasm32
// ignore-emscripten // ignore-emscripten
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
#[repr(u16)] #[repr(u16)]
enum DeviceKind { enum DeviceKind {
Nil = 0, Nil = 0,
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
// 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(non_upper_case_globals)]
#![allow(unused_attributes)]
#![allow(dead_code)]
#![allow(unknown_lints)]
// These are attributes of the implicit crate. Really this just needs to parse // These are attributes of the implicit crate. Really this just needs to parse
// for completeness since .rs files linked from .rc files support this // for completeness since .rs files linked from .rc files support this
// notation to specify their module's attributes // notation to specify their module's attributes
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// return -> return // return -> return
// mod -> module // mod -> module
// match -> match // match -> match
......
...@@ -8,6 +8,8 @@ ...@@ -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(dead_code)]
use std::thread; use std::thread;
fn user(_i: isize) {} fn user(_i: isize) {}
......
...@@ -8,6 +8,7 @@ ...@@ -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_mut)]
// This should typecheck even though the type of e is not fully // This should typecheck even though the type of e is not fully
// resolved when we finish typechecking the ||. // resolved when we finish typechecking the ||.
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,8 @@ ...@@ -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_parens)]
// Issue #1818 // Issue #1818
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// Make sure #1399 stays fixed // Make sure #1399 stays fixed
struct A { a: Box<isize> } struct A { a: Box<isize> }
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// Make sure #1399 stays fixed // Make sure #1399 stays fixed
#![feature(box_syntax)] #![feature(box_syntax)]
......
...@@ -8,6 +8,7 @@ ...@@ -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_mut)]
fn foo(x: isize) { println!("{}", x); } fn foo(x: isize) { println!("{}", x); }
......
...@@ -8,6 +8,7 @@ ...@@ -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_upper_case_globals)]
#[cfg(not(target_os = "macos"))] #[cfg(not(target_os = "macos"))]
#[link_section=".moretext"] #[link_section=".moretext"]
fn i_live_in_more_text() -> &'static str { fn i_live_in_more_text() -> &'static str {
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
#![forbid(non_camel_case_types)] #![forbid(non_camel_case_types)]
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// This is ok because we often use the trailing underscore to mean 'prime' // This is ok because we often use the trailing underscore to mean 'prime'
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![feature(box_syntax)] #![feature(box_syntax)]
......
...@@ -8,6 +8,7 @@ ...@@ -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(unreachable_code)]
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![allow(dead_code)] #![allow(dead_code)]
......
...@@ -8,6 +8,8 @@ ...@@ -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)]
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
enum foo { enum foo {
a(usize), a(usize),
......
...@@ -8,6 +8,8 @@ ...@@ -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)]
#[derive(Debug)] #[derive(Debug)]
enum foo { enum foo {
a(usize), a(usize),
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
trait Product { trait Product {
fn product(&self) -> isize; fn product(&self) -> isize;
} }
......
...@@ -8,6 +8,7 @@ ...@@ -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
struct S<T> { struct S<T> {
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
......
...@@ -8,6 +8,7 @@ ...@@ -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_upper_case_globals)]
/*! /*!
* On x86_64-linux-gnu and possibly other platforms, structs get 8-byte "preferred" alignment, * On x86_64-linux-gnu and possibly other platforms, structs get 8-byte "preferred" alignment,
* but their "ABI" alignment (i.e., what actually matters for data layout) is the largest alignment * but their "ABI" alignment (i.e., what actually matters for data layout) is the largest alignment
......
...@@ -8,6 +8,7 @@ ...@@ -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::mem::{size_of, align_of}; use std::mem::{size_of, align_of};
use std::os::raw::c_int; use std::os::raw::c_int;
......
...@@ -8,6 +8,8 @@ ...@@ -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
......
...@@ -8,6 +8,7 @@ ...@@ -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)]
pub fn main() { pub fn main() {
struct b { struct b {
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册