diff --git a/src/test/run-pass/abort-on-c-abi.rs b/src/test/run-pass/abort-on-c-abi.rs index ef368ed604bea810890c7df702b1336b9c4e7214..17b2ee39c884b727326d2f392cb952aaeea740b1 100644 --- a/src/test/run-pass/abort-on-c-abi.rs +++ b/src/test/run-pass/abort-on-c-abi.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // Since we mark some ABIs as "nounwind" to LLVM, we must make sure that // we never unwind through them. diff --git a/src/test/run-pass/alias-uninit-value.rs b/src/test/run-pass/alias-uninit-value.rs index 77b9efb0012f067e199362325da3575ceeeefbaf..5c87840fe1ee6342fe8f5a2daf55722473f8c7c6 100644 --- a/src/test/run-pass/alias-uninit-value.rs +++ b/src/test/run-pass/alias-uninit-value.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] + // Regression test for issue #374 diff --git a/src/test/run-pass/align-with-extern-c-fn.rs b/src/test/run-pass/align-with-extern-c-fn.rs index 6f89c5d377f54511501a1d12fce65cbee058094e..92ae68fb6a35e6c0ce713bb6e2d1c3071091c405 100644 --- a/src/test/run-pass/align-with-extern-c-fn.rs +++ b/src/test/run-pass/align-with-extern-c-fn.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] +#![allow(unused_variables)] + // #45662 #![feature(repr_align)] diff --git a/src/test/run-pass/alignment-gep-tup-like-1.rs b/src/test/run-pass/alignment-gep-tup-like-1.rs index c1f75d5ee74ea828e208e081d6432dace8bfab6b..7188496dab9ccb8367299533755ef3572d440cb9 100644 --- a/src/test/run-pass/alignment-gep-tup-like-1.rs +++ b/src/test/run-pass/alignment-gep-tup-like-1.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] + #![feature(box_syntax)] struct pair { diff --git a/src/test/run-pass/alloca-from-derived-tydesc.rs b/src/test/run-pass/alloca-from-derived-tydesc.rs index 23a1e7998012c9394892667edffb5e6b9c4a38d6..7895e89d58687aa0a8be4b203ba0952017a01fff 100644 --- a/src/test/run-pass/alloca-from-derived-tydesc.rs +++ b/src/test/run-pass/alloca-from-derived-tydesc.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] + // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/allocator-alloc-one.rs b/src/test/run-pass/allocator-alloc-one.rs index f15b013c07ba497a02278a7fa3c1d55788841732..a62bd67a5ace27a562ca7e8339f8788b2ea030bb 100644 --- a/src/test/run-pass/allocator-alloc-one.rs +++ b/src/test/run-pass/allocator-alloc-one.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] + #![feature(allocator_api, nonnull)] use std::alloc::{Alloc, Global, Layout, handle_alloc_error}; diff --git a/src/test/run-pass/atomic-access-bool.rs b/src/test/run-pass/atomic-access-bool.rs index 286c92ce50ee30a58b0e86b694f83a1f05eb7776..1d8923af479a155937eedb0f9991e7c18f484aa6 100644 --- a/src/test/run-pass/atomic-access-bool.rs +++ b/src/test/run-pass/atomic-access-bool.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] #![feature(atomic_access)] use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT}; use std::sync::atomic::Ordering::*; diff --git a/src/test/run-pass/atomic-compare_exchange.rs b/src/test/run-pass/atomic-compare_exchange.rs index 2f33eb9ca40932fb32c244c18fa95dbf0903fd1c..5829f764eba7705dfdcc011dfd2769c22cf84e9a 100644 --- a/src/test/run-pass/atomic-compare_exchange.rs +++ b/src/test/run-pass/atomic-compare_exchange.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] + #![feature(extended_compare_and_swap)] use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT}; use std::sync::atomic::Ordering::*; diff --git a/src/test/run-pass/atomic-print.rs b/src/test/run-pass/atomic-print.rs index 2d478e954e7cb7cb493e98b9da4e2ad124f80b33..25f4c6fd10bd0151dfcdb8019cc409529f5a64de 100644 --- a/src/test/run-pass/atomic-print.rs +++ b/src/test/run-pass/atomic-print.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(deprecated)] // ignore-cloudabi no process support // ignore-emscripten no threads support diff --git a/src/test/run-pass/attr-before-view-item.rs b/src/test/run-pass/attr-before-view-item.rs index 2a86489c69aa58018244b699f00304e6314cf10d..4ea78d352e33a2c983b36d73fff6a4b1db344deb 100644 --- a/src/test/run-pass/attr-before-view-item.rs +++ b/src/test/run-pass/attr-before-view-item.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_attributes)] + // pretty-expanded FIXME #23616 #![feature(custom_attribute, test)] diff --git a/src/test/run-pass/attr-before-view-item2.rs b/src/test/run-pass/attr-before-view-item2.rs index c8683f2d1475139b2bb7ea99600f0d7757b2a5d2..34a8b62f9fccb8ac924b3eed12ae6b173de96d6b 100644 --- a/src/test/run-pass/attr-before-view-item2.rs +++ b/src/test/run-pass/attr-before-view-item2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_attributes)] + // pretty-expanded FIXME #23616 #![feature(custom_attribute, test)] diff --git a/src/test/run-pass/attr-mix-new.rs b/src/test/run-pass/attr-mix-new.rs index bcfb4b330f5eda6ff3e46578601fb2eb40f47a2e..5b89cec70c0a86c515ae74d66bb08b0f75cb7b13 100644 --- a/src/test/run-pass/attr-mix-new.rs +++ b/src/test/run-pass/attr-mix-new.rs @@ -7,6 +7,10 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. + +#![allow(unused_attributes)] +#![allow(unknown_lints)] + // pretty-expanded FIXME #23616 #![allow(unused_attribute)] diff --git a/src/test/run-pass/attr-on-generic-formals.rs b/src/test/run-pass/attr-on-generic-formals.rs index e87b9e3d82a24ae3fba6d98647dbf8b93d4d6ba6..827da72bc44ab674de823a3d8c489f77b8d773e6 100644 --- a/src/test/run-pass/attr-on-generic-formals.rs +++ b/src/test/run-pass/attr-on-generic-formals.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_attributes)] + // This test ensures we can attach attributes to the formals in all // places where generic parameter lists occur, assuming appropriate // feature gates are enabled. diff --git a/src/test/run-pass/augmented-assignments.rs b/src/test/run-pass/augmented-assignments.rs index 3ed9e8548dcbc05d693d888f49e4d651998c3963..b8bfad8cfcbd9ea93b8856ed73f0c1fd28e4c6c0 100644 --- a/src/test/run-pass/augmented-assignments.rs +++ b/src/test/run-pass/augmented-assignments.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] #![deny(unused_assignments)] use std::mem; diff --git a/src/test/run-pass/auto-instantiate.rs b/src/test/run-pass/auto-instantiate.rs index 4a1bfa3eb42668e5f2f30a33ab632d16cd5047c5..0fe347fc43c086b995d676834ca0b6320f73d7db 100644 --- a/src/test/run-pass/auto-instantiate.rs +++ b/src/test/run-pass/auto-instantiate.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] #[derive(Debug)] struct Pair { a: T, b: U } struct Triple { x: isize, y: isize, z: isize } diff --git a/src/test/run-pass/auto-is-contextual.rs b/src/test/run-pass/auto-is-contextual.rs index ad433cc26a790bdf3984052049e8d82bcfdf8fd2..efddcaa14d3f307f5f40429325aeb8f91e6a29ee 100644 --- a/src/test/run-pass/auto-is-contextual.rs +++ b/src/test/run-pass/auto-is-contextual.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(path_statements)] +#![allow(dead_code)] macro_rules! auto { () => (struct S;) } diff --git a/src/test/run-pass/binops.rs b/src/test/run-pass/binops.rs index 2b8fcd303b66ed7dbf843d0ef370f7dcd9a3e43f..0b2098b0f055b82bcde07a1bb8ee5f8e12944be3 100644 --- a/src/test/run-pass/binops.rs +++ b/src/test/run-pass/binops.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] // Binop corner cases fn test_nil() { diff --git a/src/test/run-pass/blind-item-local-shadow.rs b/src/test/run-pass/blind-item-local-shadow.rs index bb654b1a20b9102ac1c1f658db6582e51756d198..6066bc32b26b3b01a3d4a948b10920ccb8b64867 100644 --- a/src/test/run-pass/blind-item-local-shadow.rs +++ b/src/test/run-pass/blind-item-local-shadow.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_imports)] mod bar { pub fn foo() -> bool { true } } diff --git a/src/test/run-pass/block-arg-call-as.rs b/src/test/run-pass/block-arg-call-as.rs index 73cba2e4e0a7ca73bb1eae25d7e16fab0a73ab10..342f67ae44f982ed4bdb36e3a4efc9e40f4f12f5 100644 --- a/src/test/run-pass/block-arg-call-as.rs +++ b/src/test/run-pass/block-arg-call-as.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_snake_case)] fn asBlock(f: F) -> usize where F: FnOnce() -> usize { return f(); diff --git a/src/test/run-pass/block-expr-precedence.rs b/src/test/run-pass/block-expr-precedence.rs index ac8f5012573616c56fabc935be30af47814a968a..acb0f2dd298d414ea6c40aefbe58ce81afc59544 100644 --- a/src/test/run-pass/block-expr-precedence.rs +++ b/src/test/run-pass/block-expr-precedence.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // 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 // reproduce so we don't want to automatically reformat it diff --git a/src/test/run-pass/builtin-clone-unwind.rs b/src/test/run-pass/builtin-clone-unwind.rs index 7e7c5ee4125565111043bca8f7b6fa5cb0ce86db..6f8cdd1b4fcc56aededf1ae7afe1699c09729187 100644 --- a/src/test/run-pass/builtin-clone-unwind.rs +++ b/src/test/run-pass/builtin-clone-unwind.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] +#![allow(unused_imports)] // ignore-wasm32-bare compiled with panic=abort by default // Test that builtin implementations of `Clone` cleanup everything diff --git a/src/test/run-pass/builtin-superkinds-in-metadata.rs b/src/test/run-pass/builtin-superkinds-in-metadata.rs index 3259b1cc0679e516954471b7091ccb3aa209d956..287e68294878beaf3cc8002a9f453ec478c9df17 100644 --- a/src/test/run-pass/builtin-superkinds-in-metadata.rs +++ b/src/test/run-pass/builtin-superkinds-in-metadata.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] // aux-build:trait_superkinds_in_metadata.rs diff --git a/src/test/run-pass/builtin-superkinds-phantom-typaram.rs b/src/test/run-pass/builtin-superkinds-phantom-typaram.rs index 6bc81f4a36bcddf56a22302b88ff80c91e11a2e4..84601f68d163fefcb8e700bca32c0ad7a9f19ab9 100644 --- a/src/test/run-pass/builtin-superkinds-phantom-typaram.rs +++ b/src/test/run-pass/builtin-superkinds-phantom-typaram.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // 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, // the type can implement the trait anyway. diff --git a/src/test/run-pass/cast.rs b/src/test/run-pass/cast.rs index 80fa5362a8be940c134ea9a112487991f03e805c..b88854cd7fa6a1bdfce5350513f102e5f9859c40 100644 --- a/src/test/run-pass/cast.rs +++ b/src/test/run-pass/cast.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_assignments)] +#![allow(unused_variables)] pub fn main() { let i: isize = 'Q' as isize; diff --git a/src/test/run-pass/cell-does-not-clone.rs b/src/test/run-pass/cell-does-not-clone.rs index c1fcf49654626735f0449d8d5542d92e7e93607e..9f26ee818e6a9483ab6f49999c887cff47dc1bc9 100644 --- a/src/test/run-pass/cell-does-not-clone.rs +++ b/src/test/run-pass/cell-does-not-clone.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] use std::cell::Cell; diff --git a/src/test/run-pass/check-static-recursion-foreign.rs b/src/test/run-pass/check-static-recursion-foreign.rs index 9c87f2ca68203c9bf60ffdd996def1579d1344de..a95870c2b27feb4b944ede022a3cee49513db0e5 100644 --- a/src/test/run-pass/check-static-recursion-foreign.rs +++ b/src/test/run-pass/check-static-recursion-foreign.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Static recursion check shouldn't fail when given a foreign item (#18279) // aux-build:check_static_recursion_foreign_helper.rs diff --git a/src/test/run-pass/cleanup-arm-conditional.rs b/src/test/run-pass/cleanup-arm-conditional.rs index dd900c56b40b1109c006934a7b9637bc32c67734..6ff3aff45cba1bcea8667953146271b2f373084f 100644 --- a/src/test/run-pass/cleanup-arm-conditional.rs +++ b/src/test/run-pass/cleanup-arm-conditional.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] +#![allow(unused_imports)] // Test that cleanup scope for temporaries created in a match // arm is confined to the match arm itself. diff --git a/src/test/run-pass/cleanup-rvalue-for-scope.rs b/src/test/run-pass/cleanup-rvalue-for-scope.rs index f69a0332cc4f42e49d5a6fa5e1f05130dc759345..4f8ded9012f8f42f696b9c8addcda51ea641b46f 100644 --- a/src/test/run-pass/cleanup-rvalue-for-scope.rs +++ b/src/test/run-pass/cleanup-rvalue-for-scope.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // 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 // to the for loop itself. diff --git a/src/test/run-pass/cleanup-rvalue-scopes.rs b/src/test/run-pass/cleanup-rvalue-scopes.rs index b5bf35a7006a33a95682a2ed112fcdb119b00797..8cf014a4d2a2d8cbcffaae8948a6650f20cba7a7 100644 --- a/src/test/run-pass/cleanup-rvalue-scopes.rs +++ b/src/test/run-pass/cleanup-rvalue-scopes.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_snake_case)] +#![allow(unused_variables)] // Test that destructors for rvalue temporaries run either at end of // statement or end of block, as appropriate given the temporary // lifetime rules. diff --git a/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs b/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs index ae455d916b6f9fe984cee5af9e64ac1e6c1a4cfc..90b2031afd486be55eca9bde36c8ffcde8c2f27c 100644 --- a/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs +++ b/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // 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 // is in progress. This scenario revealed a rather terrible bug. The // ingredients are: diff --git a/src/test/run-pass/clone-with-exterior.rs b/src/test/run-pass/clone-with-exterior.rs index 6ac7acd2a6b6821951b901f5bcf718f9fdec8816..0358eec0d7645032e2182804d41b4a7cd9eb8b17 100644 --- a/src/test/run-pass/clone-with-exterior.rs +++ b/src/test/run-pass/clone-with-exterior.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // ignore-emscripten no threads support #![feature(box_syntax)] diff --git a/src/test/run-pass/close-over-big-then-small-data.rs b/src/test/run-pass/close-over-big-then-small-data.rs index ba700e4e326515c55afc4f7afb5bc20f4ffa7998..44778517c44438c978f92ae3208d901fbcb036cd 100644 --- a/src/test/run-pass/close-over-big-then-small-data.rs +++ b/src/test/run-pass/close-over-big-then-small-data.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // If we use GEPi rather than GEP_tup_like when // storing closure data (as we used to do), the u64 would // overwrite the u16. diff --git a/src/test/run-pass/collections-const-new.rs b/src/test/run-pass/collections-const-new.rs index 4003c2ec4f7e4aa6a1f209a394148894778952c7..462dc42dbc2b2b483bfc4e6b7dd1afa6b463c55e 100644 --- a/src/test/run-pass/collections-const-new.rs +++ b/src/test/run-pass/collections-const-new.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Test several functions can be used for constants // 1. Vec::new() // 2. String::new() diff --git a/src/test/run-pass/command-before-exec.rs b/src/test/run-pass/command-before-exec.rs index c4fc9ee53fd7fbde976b50d682d728cc48dbd5a5..5d8bc31c2a3375be93898b38453a5a1fa918acd7 100644 --- a/src/test/run-pass/command-before-exec.rs +++ b/src/test/run-pass/command-before-exec.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // ignore-windows - this is a unix-specific test // ignore-cloudabi no processes // ignore-emscripten no processes diff --git a/src/test/run-pass/command-exec.rs b/src/test/run-pass/command-exec.rs index d6d0c2b36f647c888e5b16b3d40d8c4066fa0a4d..46b409fb13a84bc94763e528af8a0bc5dc43e6cb 100644 --- a/src/test/run-pass/command-exec.rs +++ b/src/test/run-pass/command-exec.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // ignore-windows - this is a unix-specific test // ignore-pretty issue #37199 // ignore-cloudabi no processes diff --git a/src/test/run-pass/complex.rs b/src/test/run-pass/complex.rs index 6bb9503c2b0e4c0600dc9858e61e7dc14796739b..b31f4d39f82f793f5a42b8063fe61361ddd1c61e 100644 --- a/src/test/run-pass/complex.rs +++ b/src/test/run-pass/complex.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unconditional_recursion)] +#![allow(non_camel_case_types)] +#![allow(dead_code)] +#![allow(unused_mut)] diff --git a/src/test/run-pass/core-run-destroy.rs b/src/test/run-pass/core-run-destroy.rs index eaec9b1926a20dc51211c17ff44969b11f0fb3b9..aaf017c0ad37438b6c290cf1628dd14e4f893554 100644 --- a/src/test/run-pass/core-run-destroy.rs +++ b/src/test/run-pass/core-run-destroy.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(stable_features)] +#![allow(deprecated)] +#![allow(unused_imports)] // compile-flags:--test // ignore-cloudabi no processes // ignore-emscripten no processes diff --git a/src/test/run-pass/crt-static-off-works.rs b/src/test/run-pass/crt-static-off-works.rs index c94c877c12c6d320875795d4d731206bdcab4602..14f5913e3776b17c6982472e1fe6e907174805f9 100644 --- a/src/test/run-pass/crt-static-off-works.rs +++ b/src/test/run-pass/crt-static-off-works.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // compile-flags:-C target-feature=-crt-static -Z unstable-options // ignore-musl - requires changing the linker which is hard diff --git a/src/test/run-pass/crt-static-on-works.rs b/src/test/run-pass/crt-static-on-works.rs index ae8e5f629704893e380bb51d4aa956b83854b198..dbc483241ab2c547df9e6f33349ff051f754c16a 100644 --- a/src/test/run-pass/crt-static-on-works.rs +++ b/src/test/run-pass/crt-static-on-works.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // compile-flags:-C target-feature=+crt-static -Z unstable-options #![feature(cfg_target_feature)] diff --git a/src/test/run-pass/default-method-simple.rs b/src/test/run-pass/default-method-simple.rs index 61de804a80a81100dc4e6c368cdb2a8690a7cfe6..d4e25bb5c3c6edb22da7623a3f3fab230d5642c2 100644 --- a/src/test/run-pass/default-method-simple.rs +++ b/src/test/run-pass/default-method-simple.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] trait Foo { fn f(&self) { diff --git a/src/test/run-pass/defaults-well-formedness.rs b/src/test/run-pass/defaults-well-formedness.rs index 9b06bf837ae0ccf266e24f63ce341dfb7cf1afc1..fce5e911c57aa3a6bea8ecd6b12ce37665c3db22 100644 --- a/src/test/run-pass/defaults-well-formedness.rs +++ b/src/test/run-pass/defaults-well-formedness.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] trait Trait {} struct Foo(U, V) where U: Trait; diff --git a/src/test/run-pass/discriminant_value.rs b/src/test/run-pass/discriminant_value.rs index 13257529ed9f860eaaae4d975ef1b7f552f492f2..06d4f16826fbf18f769d4abe23a97ada72fc3d16 100644 --- a/src/test/run-pass/discriminant_value.rs +++ b/src/test/run-pass/discriminant_value.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] #![feature(core, core_intrinsics)] extern crate core; diff --git a/src/test/run-pass/diverging-fallback-control-flow.rs b/src/test/run-pass/diverging-fallback-control-flow.rs index 723a98bcdfa0d85a894e7aea8d20739afdc0aff0..9f54f50e54000ae47888043da333bf5a40e6f19c 100644 --- a/src/test/run-pass/diverging-fallback-control-flow.rs +++ b/src/test/run-pass/diverging-fallback-control-flow.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // 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 // to fallback based on control-flow. // diff --git a/src/test/run-pass/diverging-fallback-method-chain.rs b/src/test/run-pass/diverging-fallback-method-chain.rs index 664a329c228ae4a3ca52050ee6a2b1812ff38788..195c55d374b822739c8b51e1a602a06946c57ba9 100644 --- a/src/test/run-pass/diverging-fallback-method-chain.rs +++ b/src/test/run-pass/diverging-fallback-method-chain.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] // Test a regression found when building compiler. The `produce()` // 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 diff --git a/src/test/run-pass/double-ref.rs b/src/test/run-pass/double-ref.rs index 13ce6a07e3641ad0be295e31e5077a7925c34104..9fa3fbca071b264f0e0f187181eb82ec63e4303c 100644 --- a/src/test/run-pass/double-ref.rs +++ b/src/test/run-pass/double-ref.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 fn check_expr() { diff --git a/src/test/run-pass/early-ret-binop-add.rs b/src/test/run-pass/early-ret-binop-add.rs index 0a490466ef73b3f109b38b62e50ed2e7c9402fdc..c4401781f5940052990f67b3617daedec85469a0 100644 --- a/src/test/run-pass/early-ret-binop-add.rs +++ b/src/test/run-pass/early-ret-binop-add.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unreachable_code)] // pretty-expanded FIXME #23616 use std::ops::Add; diff --git a/src/test/run-pass/early-vtbl-resolution.rs b/src/test/run-pass/early-vtbl-resolution.rs index 2d2cf6fbf0a7fc60a7672eec85899ae7f1333f9e..985ed08d34ddf90d89fdaa34778cbef13d7f9bba 100644 --- a/src/test/run-pass/early-vtbl-resolution.rs +++ b/src/test/run-pass/early-vtbl-resolution.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 trait thing { diff --git a/src/test/run-pass/edition-keywords-2015-2015.rs b/src/test/run-pass/edition-keywords-2015-2015.rs index 1751eacc6b7ce42bb90b831fd87870d6aff0d40a..b805b01ae39bdb9ea2f837ff0e732d30be15afed 100644 --- a/src/test/run-pass/edition-keywords-2015-2015.rs +++ b/src/test/run-pass/edition-keywords-2015-2015.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] +#![allow(unused_assignments)] +#![allow(unused_variables)] // edition:2015 // aux-build:edition-kw-macro-2015.rs diff --git a/src/test/run-pass/edition-keywords-2015-2018.rs b/src/test/run-pass/edition-keywords-2015-2018.rs index f2794a4b8d81ab403c2a5007e7e8ac71425e48c4..1e3d0c5f7778d9f4f354db81c19260f2240ad288 100644 --- a/src/test/run-pass/edition-keywords-2015-2018.rs +++ b/src/test/run-pass/edition-keywords-2015-2018.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] +#![allow(unused_assignments)] +#![allow(unused_variables)] // edition:2015 // aux-build:edition-kw-macro-2018.rs diff --git a/src/test/run-pass/edition-keywords-2018-2015.rs b/src/test/run-pass/edition-keywords-2018-2015.rs index 7d5de00cdb8c2b3702555d5bc10d03dbdf691899..9b2e49c5111e1af0779b796091314270f8553cdd 100644 --- a/src/test/run-pass/edition-keywords-2018-2015.rs +++ b/src/test/run-pass/edition-keywords-2018-2015.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_assignments)] // edition:2018 // aux-build:edition-kw-macro-2015.rs diff --git a/src/test/run-pass/edition-keywords-2018-2018.rs b/src/test/run-pass/edition-keywords-2018-2018.rs index 6462fc4da60a02125c45235ecf7577ec1508ffc8..be632b113741c5ba743d82ecc427a65bc0a3ca83 100644 --- a/src/test/run-pass/edition-keywords-2018-2018.rs +++ b/src/test/run-pass/edition-keywords-2018-2018.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_assignments)] // edition:2018 // aux-build:edition-kw-macro-2018.rs diff --git a/src/test/run-pass/empty-allocation-rvalue-non-null.rs b/src/test/run-pass/empty-allocation-rvalue-non-null.rs index f52a21a997d78a00dfff2a46f1592bf4e80b7d10..28bfb368b6e6b537bd8bfd422552924c925acd12 100644 --- a/src/test/run-pass/empty-allocation-rvalue-non-null.rs +++ b/src/test/run-pass/empty-allocation-rvalue-non-null.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] // pretty-expanded FIXME #23616 pub fn main() { diff --git a/src/test/run-pass/env-home-dir.rs b/src/test/run-pass/env-home-dir.rs index e92f24a27519e8d6bfcb3c4dc5bdd148953c5fd3..6bb2fe4b34df1ad46a8cb6c109bdd3f5b81e5b79 100644 --- a/src/test/run-pass/env-home-dir.rs +++ b/src/test/run-pass/env-home-dir.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] +#![allow(deprecated)] // ignore-cloudabi no environment variables present // ignore-emscripten env vars don't work? diff --git a/src/test/run-pass/epoch-gate-feature.rs b/src/test/run-pass/epoch-gate-feature.rs index e3cd1edd20987786dfa1cf891d42203885d77387..754e30f3adfd915599a34322e78c293dea00376f 100644 --- a/src/test/run-pass/epoch-gate-feature.rs +++ b/src/test/run-pass/epoch-gate-feature.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_variables)] // Checks if the correct registers are being used to pass arguments // when the sysv64 ABI is specified. diff --git a/src/test/run-pass/estr-uniq.rs b/src/test/run-pass/estr-uniq.rs index 4dfb15418405dd8ecdf5405479fb6112adf26ecd..e8047b3cb7f8c782f0c080c343baa8e26e0d6227 100644 --- a/src/test/run-pass/estr-uniq.rs +++ b/src/test/run-pass/estr-uniq.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_assignments)] +#![allow(unknown_lints)] #![allow(dead_assignment)] diff --git a/src/test/run-pass/existential_type.rs b/src/test/run-pass/existential_type.rs index e63d5c2293a810be4dd8ddd48dd01f3bec39819b..0193fe4b83328dc97335d54c153bd2f0098329fa 100644 --- a/src/test/run-pass/existential_type.rs +++ b/src/test/run-pass/existential_type.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_assignments)] +#![allow(unused_variables)] #![feature(existential_type)] fn main() { diff --git a/src/test/run-pass/explicit-i-suffix.rs b/src/test/run-pass/explicit-i-suffix.rs index fa3970b62805b808dd533260d80ddb5cd702fc0e..b86af5d2fabd8d5e85da5d0d1ffcf69c3d3a9e75 100644 --- a/src/test/run-pass/explicit-i-suffix.rs +++ b/src/test/run-pass/explicit-i-suffix.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // pretty-expanded FIXME #23616 pub fn main() { diff --git a/src/test/run-pass/export-glob-imports-target.rs b/src/test/run-pass/export-glob-imports-target.rs index 4f821ebcc185a67493d49c341d156724c16b9dce..36724f0b64808ce27df9e1c7862e3d202e22b483 100644 --- a/src/test/run-pass/export-glob-imports-target.rs +++ b/src/test/run-pass/export-glob-imports-target.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] +#![allow(dead_code)] // Test that a glob-export functions as an import // when referenced within its own local scope. diff --git a/src/test/run-pass/expr-block.rs b/src/test/run-pass/expr-block.rs index 664555caf26bb944163e88cd2e9e7bc5f9ad7468..3459b3c84c573381c7b54e0925ca437b1ab4a769 100644 --- a/src/test/run-pass/expr-block.rs +++ b/src/test/run-pass/expr-block.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] diff --git a/src/test/run-pass/expr-empty-ret.rs b/src/test/run-pass/expr-empty-ret.rs index 02ac2a0b67b14f1107a5790157bd7a86bbe24f3c..9fb0f07b6a03eea0d54fd3e406e4e23b88372fa3 100644 --- a/src/test/run-pass/expr-empty-ret.rs +++ b/src/test/run-pass/expr-empty-ret.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Issue #521 // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/exterior.rs b/src/test/run-pass/exterior.rs index 5ab6c7774d55cf3a83c3012fe4ef9a8db6f9393f..938c556038ff9bd13e6fc98fe13597746e9fe065 100644 --- a/src/test/run-pass/exterior.rs +++ b/src/test/run-pass/exterior.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] use std::cell::Cell; diff --git a/src/test/run-pass/fixup-deref-mut.rs b/src/test/run-pass/fixup-deref-mut.rs index 900da3c2d6ab29830790a3ac7975d2d13be14242..903e97b315869776f0880503beb881f06df7d7f6 100644 --- a/src/test/run-pass/fixup-deref-mut.rs +++ b/src/test/run-pass/fixup-deref-mut.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 use std::ops::{Deref, DerefMut}; diff --git a/src/test/run-pass/format-hygiene.rs b/src/test/run-pass/format-hygiene.rs index 6971f775231d5f7179bff9ea971a10e59fe748ee..892fae417ad6d8a84e3b3108ba1428f0931c3120 100644 --- a/src/test/run-pass/format-hygiene.rs +++ b/src/test/run-pass/format-hygiene.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] pub const arg0: u8 = 1; pub fn main() { diff --git a/src/test/run-pass/fsu-moves-and-copies.rs b/src/test/run-pass/fsu-moves-and-copies.rs index efd7f66e93b837d92e73ccc3aaca2c7542ebf625..3be15552dc1c6efd9c1fe7887f232ab1422b427e 100644 --- a/src/test/run-pass/fsu-moves-and-copies.rs +++ b/src/test/run-pass/fsu-moves-and-copies.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(stable_features)] // Issue 4691: Ensure that functional-struct-updates operates // correctly and moves rather than copy when appropriate. diff --git a/src/test/run-pass/guards-not-exhaustive.rs b/src/test/run-pass/guards-not-exhaustive.rs index 53c3eff5b81ee11dc22d2c35f300571f394da821..32f262c5a404cf3e5cbb6ac373d438a946749c3a 100644 --- a/src/test/run-pass/guards-not-exhaustive.rs +++ b/src/test/run-pass/guards-not-exhaustive.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_snake_case)] #[derive(Copy, Clone)] enum Q { R(Option) } diff --git a/src/test/run-pass/guards.rs b/src/test/run-pass/guards.rs index d79dbabac2d42e4ca82e48aed87e7b61f94e26fb..af4e2efb2ba37788224aa1c814cd8c9b4cc6b74f 100644 --- a/src/test/run-pass/guards.rs +++ b/src/test/run-pass/guards.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_shorthand_field_patterns)] #[derive(Copy, Clone)] struct Pair { x: isize, y: isize } diff --git a/src/test/run-pass/hashmap-memory.rs b/src/test/run-pass/hashmap-memory.rs index 2e98e0fe5ca3d24a3b5547ad89bff219576b5427..2b30b5ca9fcc6591a71b33749f7ddf03563ef841 100644 --- a/src/test/run-pass/hashmap-memory.rs +++ b/src/test/run-pass/hashmap-memory.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] +#![allow(unused_mut)] // ignore-emscripten No support for threads /** diff --git a/src/test/run-pass/html-literals.rs b/src/test/run-pass/html-literals.rs index 1e1fde4d1e2be75c8db4970620d7a76c6d36979b..1aed2844c965aeaf2ed73086258bfd3ea6d18c68 100644 --- a/src/test/run-pass/html-literals.rs +++ b/src/test/run-pass/html-literals.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] // A test of the macro system. Can we do HTML literals? /* diff --git a/src/test/run-pass/if-ret.rs b/src/test/run-pass/if-ret.rs index 8d475a99b818833ac41830362b72b7ac02c4ed74..5c5c4c80ab18f009ac5bb6a0a43f747ac789dee9 100644 --- a/src/test/run-pass/if-ret.rs +++ b/src/test/run-pass/if-ret.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_parens)] // pretty-expanded FIXME #23616 fn foo() { if (return) { } } diff --git a/src/test/run-pass/ignore-all-the-things.rs b/src/test/run-pass/ignore-all-the-things.rs index c14f3dc72916d6e26b0e03510691cf05b55cefae..90d858c28585be7dd405f0e63ce5714e6249d597 100644 --- a/src/test/run-pass/ignore-all-the-things.rs +++ b/src/test/run-pass/ignore-all-the-things.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_shorthand_field_patterns)] +#![allow(dead_code)] +#![allow(unused_variables)] // pretty-expanded FIXME #23616 #![feature(slice_patterns)] diff --git a/src/test/run-pass/infer-fn-tail-expr.rs b/src/test/run-pass/infer-fn-tail-expr.rs index f00005fc7d0b58c8fadf64c80937111339a82d47..a3e0f9dc0393514e2be72827ebbf717d030a2d6e 100644 --- a/src/test/run-pass/infer-fn-tail-expr.rs +++ b/src/test/run-pass/infer-fn-tail-expr.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // issue #680 diff --git a/src/test/run-pass/init-large-type.rs b/src/test/run-pass/init-large-type.rs index c8f9a0e4cab6d9b7e07c593c163fea185c892ab8..0ad0ecf8ce92c6fb4477a4d6cf19582a1807f8c3 100644 --- a/src/test/run-pass/init-large-type.rs +++ b/src/test/run-pass/init-large-type.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // Makes sure that zero-initializing large types is reasonably fast, // Doing it incorrectly causes massive slowdown in LLVM during // optimisation. diff --git a/src/test/run-pass/init-res-into-things.rs b/src/test/run-pass/init-res-into-things.rs index a270b003981669377b9a28a38d31a48f6f4d0964..dd838ef98db9ca3dda97933b4babac9a6b5beacb 100644 --- a/src/test/run-pass/init-res-into-things.rs +++ b/src/test/run-pass/init-res-into-things.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] #![feature(box_syntax)] use std::cell::Cell; diff --git a/src/test/run-pass/instantiable.rs b/src/test/run-pass/instantiable.rs index 28fba70eb24d96c5daccc484c2d902b0278ab4d2..7d708b475fca5436c053ac3812f58e01aa293122 100644 --- a/src/test/run-pass/instantiable.rs +++ b/src/test/run-pass/instantiable.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 use std::ptr; diff --git a/src/test/run-pass/invalid_const_promotion.rs b/src/test/run-pass/invalid_const_promotion.rs index a18d82fb7a4e7e22c334fe85204ff5b500795ae7..e861f21762991be81296ef697b6a18b3299c5c77 100644 --- a/src/test/run-pass/invalid_const_promotion.rs +++ b/src/test/run-pass/invalid_const_promotion.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] // ignore-wasm32 // ignore-emscripten diff --git a/src/test/run-pass/issue-53728.rs b/src/test/run-pass/issue-53728.rs index f9cb5da29a7d0eaa8883d242cd7c5f09f09ea7ff..2eaa73ed6f751e535b7842695dddfec8e6f17109 100644 --- a/src/test/run-pass/issue-53728.rs +++ b/src/test/run-pass/issue-53728.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] #[repr(u16)] enum DeviceKind { Nil = 0, diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index 0fc13319b8734a8337bcea6d6f0100e97906f6d5..97fa8d36d137c92fc6f6e09723b6a729d16a839d 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -8,6 +8,11 @@ // option. This file may not be copied, modified, or distributed // 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 // for completeness since .rs files linked from .rc files support this // notation to specify their module's attributes diff --git a/src/test/run-pass/item-name-overload.rs b/src/test/run-pass/item-name-overload.rs index 2827a6df3373767f09fcf59581cf17a614301930..b07b0359a2d72c3328db70ac0e6b4a6927e1efde 100644 --- a/src/test/run-pass/item-name-overload.rs +++ b/src/test/run-pass/item-name-overload.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] diff --git a/src/test/run-pass/keyword-changes-2012-07-31.rs b/src/test/run-pass/keyword-changes-2012-07-31.rs index 9838fe62394ce17b1696bdebac12201634c6a6d5..6dbfacf047425027b8ad21313756e44c94cea755 100644 --- a/src/test/run-pass/keyword-changes-2012-07-31.rs +++ b/src/test/run-pass/keyword-changes-2012-07-31.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // return -> return // mod -> module // match -> match diff --git a/src/test/run-pass/kindck-implicit-close-over-mut-var.rs b/src/test/run-pass/kindck-implicit-close-over-mut-var.rs index 1c5d8a69bf3406a9a7eb7d9f9ddea8376f6fba87..9788b1e06036f5cd21bf8f0dadce8a4c61ad87dc 100644 --- a/src/test/run-pass/kindck-implicit-close-over-mut-var.rs +++ b/src/test/run-pass/kindck-implicit-close-over-mut-var.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(dead_code)] use std::thread; fn user(_i: isize) {} diff --git a/src/test/run-pass/lambda-infer-unresolved.rs b/src/test/run-pass/lambda-infer-unresolved.rs index 5109c6fc77726d31ee0d620dfacaced9a300d7fd..ec12f257f6108da9213f68267421862fd64a604c 100644 --- a/src/test/run-pass/lambda-infer-unresolved.rs +++ b/src/test/run-pass/lambda-infer-unresolved.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] // This should typecheck even though the type of e is not fully // resolved when we finish typechecking the ||. diff --git a/src/test/run-pass/large-records.rs b/src/test/run-pass/large-records.rs index e9c66093fb0cfe98f649f1b4ebf77c234fe57e4e..bd685dd4244955dcf8044e2cd2c0c1f7a391de50 100644 --- a/src/test/run-pass/large-records.rs +++ b/src/test/run-pass/large-records.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] diff --git a/src/test/run-pass/last-use-in-block.rs b/src/test/run-pass/last-use-in-block.rs index a2b01f29ae127f457695fc0c7e7a37b6816e85aa..bed94de7b952830f872c55f2f88283862e533e92 100644 --- a/src/test/run-pass/last-use-in-block.rs +++ b/src/test/run-pass/last-use-in-block.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_parens)] // Issue #1818 diff --git a/src/test/run-pass/last-use-in-cap-clause.rs b/src/test/run-pass/last-use-in-cap-clause.rs index 5fbcfadf870e1682be4f2c44a96ed55bbfce3028..d63a712c1aaf8efe8138d20dde3c34b979166a6f 100644 --- a/src/test/run-pass/last-use-in-cap-clause.rs +++ b/src/test/run-pass/last-use-in-cap-clause.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Make sure #1399 stays fixed struct A { a: Box } diff --git a/src/test/run-pass/last-use-is-capture.rs b/src/test/run-pass/last-use-is-capture.rs index cb2a2061406a243d9928d439c9fccb92d1ec6a98..747c7d2eae4002e2b9a025f2649f5177a3f9118f 100644 --- a/src/test/run-pass/last-use-is-capture.rs +++ b/src/test/run-pass/last-use-is-capture.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Make sure #1399 stays fixed #![feature(box_syntax)] diff --git a/src/test/run-pass/lazy-init.rs b/src/test/run-pass/lazy-init.rs index d71d7e751a045c2f24c2fcbcc5941e850a4f1119..a4a3edf71c0c4c532cc8b1fc249204e18cf0218c 100644 --- a/src/test/run-pass/lazy-init.rs +++ b/src/test/run-pass/lazy-init.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] fn foo(x: isize) { println!("{}", x); } diff --git a/src/test/run-pass/link-section.rs b/src/test/run-pass/link-section.rs index 3336ce7e723de6e79050b89f347985f91b2c2045..e2369e85d56dd8ae014849440a58507866fb1e9f 100644 --- a/src/test/run-pass/link-section.rs +++ b/src/test/run-pass/link-section.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] #[cfg(not(target_os = "macos"))] #[link_section=".moretext"] fn i_live_in_more_text() -> &'static str { diff --git a/src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs b/src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs index 6e65cb2afd4ff38c59063c1235c9276a4589690e..14ef8c1f51f7d6a32426053d83ba63c9930ae452 100644 --- a/src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs +++ b/src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. // +#![allow(dead_code)] #![forbid(non_camel_case_types)] diff --git a/src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs b/src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs index 3b4bd001e8dc051abba93eecb027eb383160c5e5..8115a2c50e3d675a4cf57df226cceb8da366211b 100644 --- a/src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs +++ b/src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // This is ok because we often use the trailing underscore to mean 'prime' // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/list.rs b/src/test/run-pass/list.rs index 37612415555099880cca736a9bdb71aa99168693..bab777d09730d2188b958133a4bb655e24676e09 100644 --- a/src/test/run-pass/list.rs +++ b/src/test/run-pass/list.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] // pretty-expanded FIXME #23616 #![feature(box_syntax)] diff --git a/src/test/run-pass/liveness-assign-imm-local-after-ret.rs b/src/test/run-pass/liveness-assign-imm-local-after-ret.rs index 76b44832a8a1651f1c1d06360a8495e1cfbb8466..bccc939e85ed50117e408ddaf0a37797855b9c2f 100644 --- a/src/test/run-pass/liveness-assign-imm-local-after-ret.rs +++ b/src/test/run-pass/liveness-assign-imm-local-after-ret.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unreachable_code)] // pretty-expanded FIXME #23616 #![allow(dead_code)] diff --git a/src/test/run-pass/log-knows-the-names-of-variants-in-std.rs b/src/test/run-pass/log-knows-the-names-of-variants-in-std.rs index 1991e2b178d51c4ddb76f25d19e5e5d6960884b3..4c501a78b576c87abbc0f91e90e887004a9b44b5 100644 --- a/src/test/run-pass/log-knows-the-names-of-variants-in-std.rs +++ b/src/test/run-pass/log-knows-the-names-of-variants-in-std.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] #[derive(Clone, Debug)] enum foo { a(usize), diff --git a/src/test/run-pass/log-knows-the-names-of-variants.rs b/src/test/run-pass/log-knows-the-names-of-variants.rs index e8852377957f88ed3a406dff051bd8f6d1e99de8..19a7c7105c93ca9a63867223de26546178b8d6e0 100644 --- a/src/test/run-pass/log-knows-the-names-of-variants.rs +++ b/src/test/run-pass/log-knows-the-names-of-variants.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] #[derive(Debug)] enum foo { a(usize), diff --git a/src/test/run-pass/max-min-classes.rs b/src/test/run-pass/max-min-classes.rs index f0844b8e1eb1770d24a5058aa71dfdaaa8798274..f34d5cbd9e314d27937e04f7dc21f3b7bae03a23 100644 --- a/src/test/run-pass/max-min-classes.rs +++ b/src/test/run-pass/max-min-classes.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_snake_case)] trait Product { fn product(&self) -> isize; } diff --git a/src/test/run-pass/mid-path-type-params.rs b/src/test/run-pass/mid-path-type-params.rs index 3055f90ee259772e4472d49c75e278533d734d1d..7e06530b38c8f5fdc3427b380a7b23b9389b1c2e 100644 --- a/src/test/run-pass/mid-path-type-params.rs +++ b/src/test/run-pass/mid-path-type-params.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 struct S { diff --git a/src/test/run-pass/monad.rs b/src/test/run-pass/monad.rs index 211827f92222ca0ca02f501a9cc28908e3d3b942..6c7c39e5aa5278c39f0ab8dd45b7d369230bde94 100644 --- a/src/test/run-pass/monad.rs +++ b/src/test/run-pass/monad.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] diff --git a/src/test/run-pass/monomorphize-abi-alignment.rs b/src/test/run-pass/monomorphize-abi-alignment.rs index 00e97ebc24e7ba5f5f1fa4b6a616a2cec0d6bc55..899f3f4ba30286845e8ca44bddfa27adb01d1c60 100644 --- a/src/test/run-pass/monomorphize-abi-alignment.rs +++ b/src/test/run-pass/monomorphize-abi-alignment.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // 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, * but their "ABI" alignment (i.e., what actually matters for data layout) is the largest alignment diff --git a/src/test/run-pass/multiple-reprs.rs b/src/test/run-pass/multiple-reprs.rs index d8eafb806f74765432735847d64814f03c4e89b0..c00fb68f9f7ff68c757284e30c7bf7a67645db03 100644 --- a/src/test/run-pass/multiple-reprs.rs +++ b/src/test/run-pass/multiple-reprs.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] use std::mem::{size_of, align_of}; use std::os::raw::c_int; diff --git a/src/test/run-pass/mutual-recursion-group.rs b/src/test/run-pass/mutual-recursion-group.rs index 72a8847094b2c08630fc7412b940a19a81eecb23..87879e0841410115ab758492b01e67d7688511ca 100644 --- a/src/test/run-pass/mutual-recursion-group.rs +++ b/src/test/run-pass/mutual-recursion-group.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/nested-class.rs b/src/test/run-pass/nested-class.rs index 1ad68cb9de0522a8d4df3ff7beb2c15c77414b6e..ca8693868565d6f47abc340206e8059280b0ce58 100644 --- a/src/test/run-pass/nested-class.rs +++ b/src/test/run-pass/nested-class.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] pub fn main() { struct b { diff --git a/src/test/run-pass/never-result.rs b/src/test/run-pass/never-result.rs index 5c0af392f44df27c659d6cebedccf666c1c4dee7..a1b9eda8b897509b0fcd3bb6f5f01ed41fc0de66 100644 --- a/src/test/run-pass/never-result.rs +++ b/src/test/run-pass/never-result.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] +#![allow(unreachable_code)] // Test that we can extract a ! through pattern matching then use it as several different types. #![feature(never_type)] diff --git a/src/test/run-pass/newlambdas-ret-infer.rs b/src/test/run-pass/newlambdas-ret-infer.rs index 428eed0787a833db32a0959fed1a74f89a35c61a..c2871469de16832073f0c2ff888153e23f1df3f6 100644 --- a/src/test/run-pass/newlambdas-ret-infer.rs +++ b/src/test/run-pass/newlambdas-ret-infer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Test that the lambda kind is inferred correctly as a return // expression diff --git a/src/test/run-pass/newlambdas-ret-infer2.rs b/src/test/run-pass/newlambdas-ret-infer2.rs index 439ea3f2b579c0919e998c7042156e51c2e9ea7d..4d545c7a969db701b87b5eca482d551cf00d3774 100644 --- a/src/test/run-pass/newlambdas-ret-infer2.rs +++ b/src/test/run-pass/newlambdas-ret-infer2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Test that the lambda kind is inferred correctly as a return // expression diff --git a/src/test/run-pass/newtype-polymorphic.rs b/src/test/run-pass/newtype-polymorphic.rs index e7da8d7bf93c7b1705f52c286e163b27793a3132..20817cddd05c2a3da880cefc20b170557bbdcdd4 100644 --- a/src/test/run-pass/newtype-polymorphic.rs +++ b/src/test/run-pass/newtype-polymorphic.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] #[derive(Clone)] diff --git a/src/test/run-pass/newtype.rs b/src/test/run-pass/newtype.rs index 818ea4c9f23262429aec69bc932fbad5d7cbce87..3dbad08f1d87ef80a5fdf805f45d4be810ee1fb4 100644 --- a/src/test/run-pass/newtype.rs +++ b/src/test/run-pass/newtype.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] #[derive(Copy, Clone)] struct mytype(Mytype); diff --git a/src/test/run-pass/nil-decl-in-foreign.rs b/src/test/run-pass/nil-decl-in-foreign.rs index 97ee237771f3fae9bd6e8e307f8c1d44714c63f4..96bc80c21259174fe3dc5cc5d36d5e58101e2d83 100644 --- a/src/test/run-pass/nil-decl-in-foreign.rs +++ b/src/test/run-pass/nil-decl-in-foreign.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(improper_ctypes)] +#![allow(dead_code)] // Issue #901 // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/no-core-1.rs b/src/test/run-pass/no-core-1.rs index 7868077fbf244cac6a4861196ec770bd4f177fa1..f5f089691182b310ac6d573e7a579cb5d1df2deb 100644 --- a/src/test/run-pass/no-core-1.rs +++ b/src/test/run-pass/no-core-1.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] #![feature(no_core, core)] #![no_core] diff --git a/src/test/run-pass/nullable-pointer-size.rs b/src/test/run-pass/nullable-pointer-size.rs index b097d350c8d5e299aefe18eb468ae79f286db6f2..bdeae618c8b914af24c24ef583369ffa3111880f 100644 --- a/src/test/run-pass/nullable-pointer-size.rs +++ b/src/test/run-pass/nullable-pointer-size.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] use std::mem; diff --git a/src/test/run-pass/operator-overloading.rs b/src/test/run-pass/operator-overloading.rs index c3a1164ba9c6af2e1c229e7e2311fefe822bb09e..1d66388275e9b83e0ba5b01883205c1b60d044ee 100644 --- a/src/test/run-pass/operator-overloading.rs +++ b/src/test/run-pass/operator-overloading.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] use std::cmp; use std::ops; diff --git a/src/test/run-pass/option-unwrap.rs b/src/test/run-pass/option-unwrap.rs index e22edb3caede49ea89f1d9ec8c80679bdff05177..32faab4c12c5f79307f7ea667225cac40743a26a 100644 --- a/src/test/run-pass/option-unwrap.rs +++ b/src/test/run-pass/option-unwrap.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] use std::cell::Cell; struct dtor<'a> { diff --git a/src/test/run-pass/out-of-stack.rs b/src/test/run-pass/out-of-stack.rs index 6ed07fb2f7d25a884e2d67e88e07d00db09527e8..cd0f7cdbf6dab9f5941fba268271d9c2c8f9799b 100644 --- a/src/test/run-pass/out-of-stack.rs +++ b/src/test/run-pass/out-of-stack.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(unconditional_recursion)] // ignore-android: FIXME (#20004) // ignore-musl // ignore-cloudabi no processes diff --git a/src/test/run-pass/output-slot-variants.rs b/src/test/run-pass/output-slot-variants.rs index 2171b8c481d1fd7c24b7f4f882437ba67534bf1f..e4013854e7895a3e9e3deb1f54c79d4856248ed6 100644 --- a/src/test/run-pass/output-slot-variants.rs +++ b/src/test/run-pass/output-slot-variants.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_assignments)] +#![allow(unknown_lints)] // pretty-expanded FIXME #23616 #![allow(dead_assignment)] diff --git a/src/test/run-pass/over-constrained-vregs.rs b/src/test/run-pass/over-constrained-vregs.rs index e4e07941470a815655bf5fdb73c603a4e7b2c066..edbb311fcda8380e9f1cc978505db156dce0cc8d 100644 --- a/src/test/run-pass/over-constrained-vregs.rs +++ b/src/test/run-pass/over-constrained-vregs.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // Regression test for issue #152. pub fn main() { let mut b: usize = 1_usize; diff --git a/src/test/run-pass/parse-panic.rs b/src/test/run-pass/parse-panic.rs index 22b24ebb3b589b5fcdbe7beca6a4714156e9dcbb..5c904295bb47545038f99f9298486a881de1aee4 100644 --- a/src/test/run-pass/parse-panic.rs +++ b/src/test/run-pass/parse-panic.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] #![allow(unreachable_code)] fn dont_call_me() { panic!(); println!("{}", 1); } diff --git a/src/test/run-pass/paths-containing-nul.rs b/src/test/run-pass/paths-containing-nul.rs index e0fe1ea72df16486312de38ba7c6f57dae96687b..3359f1064c9c6b029ce09fbd7f3d0897167dcbb4 100644 --- a/src/test/run-pass/paths-containing-nul.rs +++ b/src/test/run-pass/paths-containing-nul.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(deprecated)] // ignore-cloudabi no files or I/O // ignore-wasm32-bare no files or I/O diff --git a/src/test/run-pass/project-cache-issue-37154.rs b/src/test/run-pass/project-cache-issue-37154.rs index 29dc6984e234a48459e3634103074a469484ec94..24fb400150aa851712ddb171ebee0e4f906bb1f8 100644 --- a/src/test/run-pass/project-cache-issue-37154.rs +++ b/src/test/run-pass/project-cache-issue-37154.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Regression test for #37154: the problem here was that the cache // results in a false error because it was caching skolemized results // even after those skolemized regions had been popped. diff --git a/src/test/run-pass/project-defer-unification.rs b/src/test/run-pass/project-defer-unification.rs index 9a6ea2272fea7c5ca453595a1c0f3343eed99212..901af09763b98b6ecf24eabb153b985f076410e9 100644 --- a/src/test/run-pass/project-defer-unification.rs +++ b/src/test/run-pass/project-defer-unification.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_variables)] +#![allow(unreachable_code)] // A regression test extracted from image-0.3.11. The point of // failure was in `index_colors` below. diff --git a/src/test/run-pass/ptr-coercion.rs b/src/test/run-pass/ptr-coercion.rs index ac1b6aebec5b1cd1785a5389115a5a8ac6d11ba8..3a4d2b3e60208ab877a7e21fdb4ba43bf504bde8 100644 --- a/src/test/run-pass/ptr-coercion.rs +++ b/src/test/run-pass/ptr-coercion.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] // Test coercions between pointers which don't do anything fancy like unsizing. // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/pure-sum.rs b/src/test/run-pass/pure-sum.rs index 3313196a5eced2a8bb17bcf124adc5b11be4a2b4..5f6b9b17e3607fa841328ff99d9889a4509c4a5f 100644 --- a/src/test/run-pass/pure-sum.rs +++ b/src/test/run-pass/pure-sum.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Check that functions can modify local state. // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/range-type-infer.rs b/src/test/run-pass/range-type-infer.rs index b6d4d09d69727239a4e4cd4235a5a5797d7e0995..809c1ba702bfb9b2730b8deb5586a1ef8e10d247 100644 --- a/src/test/run-pass/range-type-infer.rs +++ b/src/test/run-pass/range-type-infer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // Make sure the type inference for the new range expression work as // good as the old one. Check out issue #21672, #21595 and #21649 for // more details. diff --git a/src/test/run-pass/range.rs b/src/test/run-pass/range.rs index 4c249bbe1f73e338b90d88a775e7b9227f205a3d..2fae4d3cf269329e8932594b6562a833e726c3a3 100644 --- a/src/test/run-pass/range.rs +++ b/src/test/run-pass/range.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_comparisons)] +#![allow(dead_code)] +#![allow(unused_mut)] // Test range syntax. diff --git a/src/test/run-pass/range_inclusive_gate.rs b/src/test/run-pass/range_inclusive_gate.rs index 6c2731fa5a9bb85fc5bca85b7358cea2cacc5ce4..09132efe18cfb1d22888b4cafa8e9779bf9f14b2 100644 --- a/src/test/run-pass/range_inclusive_gate.rs +++ b/src/test/run-pass/range_inclusive_gate.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_comparisons)] // Test that you only need the syntax gate if you don't mention the structs. // (Obsoleted since both features are stabilized) diff --git a/src/test/run-pass/rcvr-borrowed-to-region.rs b/src/test/run-pass/rcvr-borrowed-to-region.rs index bc869113fe90000e5be3114e827c9693ad823c74..02392be7e4f2d490b980068792359801d1015cb3 100644 --- a/src/test/run-pass/rcvr-borrowed-to-region.rs +++ b/src/test/run-pass/rcvr-borrowed-to-region.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] #![feature(box_syntax)] trait get { diff --git a/src/test/run-pass/readalias.rs b/src/test/run-pass/readalias.rs index 56b15c243618f4d5b621659698d17efd33b60a67..d7ddd9505d78c7ad91bad4db7c8f6428461694a5 100644 --- a/src/test/run-pass/readalias.rs +++ b/src/test/run-pass/readalias.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] diff --git a/src/test/run-pass/resolve-issue-2428.rs b/src/test/run-pass/resolve-issue-2428.rs index 6159b24165e44db866e84c78cbc9fc49212b9071..0ad97e78d1afab0608b76259a66c89a51541abae 100644 --- a/src/test/run-pass/resolve-issue-2428.rs +++ b/src/test/run-pass/resolve-issue-2428.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(non_upper_case_globals)] const foo: isize = 4 >> 1; enum bs { thing = foo } diff --git a/src/test/run-pass/resource-assign-is-not-copy.rs b/src/test/run-pass/resource-assign-is-not-copy.rs index 4d0c2900a0fad5ab14390f02caf7f2abc7fcdb42..ccc3396e50c0236ec2e23b93cc7794781af1b9c3 100644 --- a/src/test/run-pass/resource-assign-is-not-copy.rs +++ b/src/test/run-pass/resource-assign-is-not-copy.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] use std::cell::Cell; #[derive(Debug)] diff --git a/src/test/run-pass/resource-destruct.rs b/src/test/run-pass/resource-destruct.rs index c92a9ca8480ca7c5fc979d813997196f5e2a4044..d3ba221b34a064713e86a4ebf3ba32b5dfca817d 100644 --- a/src/test/run-pass/resource-destruct.rs +++ b/src/test/run-pass/resource-destruct.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] use std::cell::Cell; struct shrinky_pointer<'a> { diff --git a/src/test/run-pass/ret-none.rs b/src/test/run-pass/ret-none.rs index 032a4b662cb1a3dbb4c640ae0060067a8e0cd03b..72ee3dbfe2da2ef7f425ccc1143fb9a334fa27bf 100644 --- a/src/test/run-pass/ret-none.rs +++ b/src/test/run-pass/ret-none.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/segfault-no-out-of-stack.rs b/src/test/run-pass/segfault-no-out-of-stack.rs index 307ead4b74f741cf6fd9188ec4d04765c610c345..a85fe6733dd80e068fa107f286d39c59e6eb91cc 100644 --- a/src/test/run-pass/segfault-no-out-of-stack.rs +++ b/src/test/run-pass/segfault-no-out-of-stack.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] // ignore-cloudabi can't run commands // ignore-emscripten can't run commands diff --git a/src/test/run-pass/semistatement-in-lambda.rs b/src/test/run-pass/semistatement-in-lambda.rs index 0fc5fe498a62d6012d580df01e90d6e0def615f8..c9ab466e445598222dd6739e058626d526d14b3a 100644 --- a/src/test/run-pass/semistatement-in-lambda.rs +++ b/src/test/run-pass/semistatement-in-lambda.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] pub fn main() { // Test that lambdas behave as unary expressions with block-like expressions diff --git a/src/test/run-pass/shadow.rs b/src/test/run-pass/shadow.rs index b764fc6f1ec967143c1f00731debf9ba96ef8e73..b2028927da46eb4f9b96f30e356012844ac5bfb8 100644 --- a/src/test/run-pass/shadow.rs +++ b/src/test/run-pass/shadow.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] fn foo(c: Vec ) { let a: isize = 5; let mut b: Vec = Vec::new(); diff --git a/src/test/run-pass/shadowed-use-visibility.rs b/src/test/run-pass/shadowed-use-visibility.rs index d2a32da4feaa29ffcc286a93ae96ff2118b026c6..b54ba3d2ce749e8f37eafa7c65c5d87cdad2f5b6 100644 --- a/src/test/run-pass/shadowed-use-visibility.rs +++ b/src/test/run-pass/shadowed-use-visibility.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] mod foo { pub fn f() {} diff --git a/src/test/run-pass/sigpipe-should-be-ignored.rs b/src/test/run-pass/sigpipe-should-be-ignored.rs index f5e2239538f65ada5d7a55c08c976b04a3412b87..c964bcb94ef83aea40da5d4bd5b235892768458e 100644 --- a/src/test/run-pass/sigpipe-should-be-ignored.rs +++ b/src/test/run-pass/sigpipe-should-be-ignored.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] // Be sure that when a SIGPIPE would have been received that the entire process // doesn't die in a ball of fire, but rather it's gracefully handled. diff --git a/src/test/run-pass/simple-infer.rs b/src/test/run-pass/simple-infer.rs index 04c1af4326bbd2a067d8dcf2213f9587d7f2fd35..6feb2da5fac52f4b8a0b6e42977996653ff013a0 100644 --- a/src/test/run-pass/simple-infer.rs +++ b/src/test/run-pass/simple-infer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_mut)] pub fn main() { let mut n; n = 1; println!("{}", n); } diff --git a/src/test/run-pass/size-and-align.rs b/src/test/run-pass/size-and-align.rs index 13d55e0172e71f41f80c2ee28d46106927af0711..0da63f93cc6b31013eb4ece7b11c68fa2774aed2 100644 --- a/src/test/run-pass/size-and-align.rs +++ b/src/test/run-pass/size-and-align.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] enum clam { a(T, isize), b, } fn uhoh(v: Vec> ) { diff --git a/src/test/run-pass/sized-borrowed-pointer.rs b/src/test/run-pass/sized-borrowed-pointer.rs index 76c06d560d754417f786c7f4a09d8634acaee546..03425e0472520c6d4b28d2a3b0ae111328b5d665 100644 --- a/src/test/run-pass/sized-borrowed-pointer.rs +++ b/src/test/run-pass/sized-borrowed-pointer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Possibly-dynamic size of typaram should be cleared at pointer boundary. // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/sized-owned-pointer.rs b/src/test/run-pass/sized-owned-pointer.rs index d3a6b104dba55f441f526482f63c69d680258c55..5624910cee9ee0a1959eb0bb994357557e585df2 100644 --- a/src/test/run-pass/sized-owned-pointer.rs +++ b/src/test/run-pass/sized-owned-pointer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Possibly-dynamic size of typaram should be cleared at pointer boundary. diff --git a/src/test/run-pass/snake-case-no-lowercase-equivalent.rs b/src/test/run-pass/snake-case-no-lowercase-equivalent.rs index 90ea7537c6e607aea721549fca788db37ea8c6d7..49fb417675518e4a2fe5235cc2c7973b1796fe9a 100644 --- a/src/test/run-pass/snake-case-no-lowercase-equivalent.rs +++ b/src/test/run-pass/snake-case-no-lowercase-equivalent.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 #![feature(non_ascii_idents)] diff --git a/src/test/run-pass/sse2.rs b/src/test/run-pass/sse2.rs index b1d7e5435c4cb9b33d905aa3b78cb234a6c7a38b..041286fe656a0d10a3154f5e34628cc530c284da 100644 --- a/src/test/run-pass/sse2.rs +++ b/src/test/run-pass/sse2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // min-llvm-version 6.0 // ^ needs MCSubtargetInfo::checkFeatures() // ignore-cloudabi no std::env diff --git a/src/test/run-pass/structured-compare.rs b/src/test/run-pass/structured-compare.rs index 7974366c395fc922f0c4b2e728322a2e576f7d8d..22d1eeb0e0afc37532437e73ab1077c80c009756 100644 --- a/src/test/run-pass/structured-compare.rs +++ b/src/test/run-pass/structured-compare.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] #[derive(Copy, Clone, Debug)] diff --git a/src/test/run-pass/super-fast-paren-parsing.rs b/src/test/run-pass/super-fast-paren-parsing.rs index a1bbd190211272170958c3b7a4a4a401edf85529..5e120bd80ee23ab087018d5feb4f9f385f6fac40 100644 --- a/src/test/run-pass/super-fast-paren-parsing.rs +++ b/src/test/run-pass/super-fast-paren-parsing.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] +#![allow(dead_code)] // exec-env:RUST_MIN_STACK=16000000 // rustc-env:RUST_MIN_STACK=16000000 // diff --git a/src/test/run-pass/super.rs b/src/test/run-pass/super.rs index 51520c77751b0678b56bfa09b47f212b86a9722a..5958565823f346b7cda97fe437024583d6c4d5cf 100644 --- a/src/test/run-pass/super.rs +++ b/src/test/run-pass/super.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 pub mod a { diff --git a/src/test/run-pass/swap-overlapping.rs b/src/test/run-pass/swap-overlapping.rs index 2e5386d6866edefa56136210f1648fd0651dce22..8fcbfce0f7a625ca5fb1ddbddd6bdc5d4cf51e82 100644 --- a/src/test/run-pass/swap-overlapping.rs +++ b/src/test/run-pass/swap-overlapping.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // Issue #5041 - avoid overlapping memcpy when src and dest of a swap are the same // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/trivial-message.rs b/src/test/run-pass/trivial-message.rs index fd60c61463818ec78e4938b9cab157d3587a3a72..c6445190c0a4929e9edcd081c2a128c707823f5f 100644 --- a/src/test/run-pass/trivial-message.rs +++ b/src/test/run-pass/trivial-message.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] /* This is about the simplest program that can successfully send a message. diff --git a/src/test/run-pass/try-block.rs b/src/test/run-pass/try-block.rs index a7e7cc2062095de7669aaee90c8e5c9060e66844..f618d16c598a59b5c6a60549b4a46c9decba2a4e 100644 --- a/src/test/run-pass/try-block.rs +++ b/src/test/run-pass/try-block.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // compile-flags: --edition 2018 #![feature(try_blocks)] diff --git a/src/test/run-pass/try-is-identifier-edition2015.rs b/src/test/run-pass/try-is-identifier-edition2015.rs index aafb52e4c491fd73683435eaed533f62e71c03ff..94e2d57999313a21a31f3b4ea44cf7808de4c945 100644 --- a/src/test/run-pass/try-is-identifier-edition2015.rs +++ b/src/test/run-pass/try-is-identifier-edition2015.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] // compile-flags: --edition 2015 fn main() { diff --git a/src/test/run-pass/try-operator-hygiene.rs b/src/test/run-pass/try-operator-hygiene.rs index 53d6185020a0235ffb5f16b691780e4d66548f20..045a8a503203253b153703256a7be8c6441858c1 100644 --- a/src/test/run-pass/try-operator-hygiene.rs +++ b/src/test/run-pass/try-operator-hygiene.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] +#![allow(dead_code)] // `expr?` expands to: // // match expr { diff --git a/src/test/run-pass/try-operator.rs b/src/test/run-pass/try-operator.rs index d615c5f1034dc8c27a21007a589d602e0858924a..f212e560bf28018759340b98aa5d04ea89ed4d8f 100644 --- a/src/test/run-pass/try-operator.rs +++ b/src/test/run-pass/try-operator.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // ignore-cloudabi no std::fs use std::fs::File; diff --git a/src/test/run-pass/try-wait.rs b/src/test/run-pass/try-wait.rs index b8c0d80c5a67cb627a562572c9807733fd8300c0..7c2333ffdaacf6da33b03b243beb191c5a23f55d 100644 --- a/src/test/run-pass/try-wait.rs +++ b/src/test/run-pass/try-wait.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // ignore-cloudabi no processes // ignore-emscripten no processes diff --git a/src/test/run-pass/tup.rs b/src/test/run-pass/tup.rs index 86ca37deb02d1aeb6e68f5c6fd5a67187112d744..b6fb2119308db0101fa2235e2eb68f302cbf2825 100644 --- a/src/test/run-pass/tup.rs +++ b/src/test/run-pass/tup.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] type point = (isize, isize); diff --git a/src/test/run-pass/tydesc-name.rs b/src/test/run-pass/tydesc-name.rs index 4a169c0a384aa2bcf8bebe4f476447ef956544c4..a66830e23df1a454c070e7f9dd8a0ceac2d37b12 100644 --- a/src/test/run-pass/tydesc-name.rs +++ b/src/test/run-pass/tydesc-name.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] #![feature(core_intrinsics)] diff --git a/src/test/run-pass/type-ascription.rs b/src/test/run-pass/type-ascription.rs index 18fb8e2e408f196f5d599b2954a170a251dbd1d9..b5eb2fe170510d05434f5505e756c23f7a6ea22e 100644 --- a/src/test/run-pass/type-ascription.rs +++ b/src/test/run-pass/type-ascription.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_variables)] // Type ascription doesn't lead to unsoundness #![feature(type_ascription)] diff --git a/src/test/run-pass/type-in-nested-module.rs b/src/test/run-pass/type-in-nested-module.rs index 7e2360caa93ff3d8c925a08aefda2bd764946d87..8fef294c0cf17cfede8c92ea1607806568d3c162 100644 --- a/src/test/run-pass/type-in-nested-module.rs +++ b/src/test/run-pass/type-in-nested-module.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/type-infer-generalize-ty-var.rs b/src/test/run-pass/type-infer-generalize-ty-var.rs index d7fb85ca4842e6824736ab98df5857b885c259c8..b918c3fc396df0b98ef35b612b4a6b36a0eefe37 100644 --- a/src/test/run-pass/type-infer-generalize-ty-var.rs +++ b/src/test/run-pass/type-infer-generalize-ty-var.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_upper_case_globals)] +#![allow(dead_code)] +#![allow(unused_assignments)] +#![allow(unused_variables)] // Test a scenario where we generate a constraint like `?1 <: &?2`. // In such a case, it is important that we instantiate `?1` with `&?3` // where `?3 <: ?2`, and not with `&?2`. This is a regression test for diff --git a/src/test/run-pass/type-param-constraints.rs b/src/test/run-pass/type-param-constraints.rs index 1a3bdcca7a1e522878fe1ff9811d1195225fae4e..e05f6f153a43e94ab22b09f182b0fcd9afbfaae4 100644 --- a/src/test/run-pass/type-param-constraints.rs +++ b/src/test/run-pass/type-param-constraints.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 #![feature(box_syntax)] diff --git a/src/test/run-pass/type-param.rs b/src/test/run-pass/type-param.rs index c59e40934fb4b2762ce69a1f734fa0ab1cfaff07..246cf209efb212bcf164cfefaa8579c7e9932d05 100644 --- a/src/test/run-pass/type-param.rs +++ b/src/test/run-pass/type-param.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/type-params-in-for-each.rs b/src/test/run-pass/type-params-in-for-each.rs index fea2bd978eb9692975f3dff98d7f1b7a4c44b3e0..76ac2d14b93a4f50cc055ab61a12ccf4c41a4bd6 100644 --- a/src/test/run-pass/type-params-in-for-each.rs +++ b/src/test/run-pass/type-params-in-for-each.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/type-ptr.rs b/src/test/run-pass/type-ptr.rs index 67ead80c89b2562394b5a6ac53dfae2025bbda52..94d46b1a96eb96efc32e03549e0851ac50b68dd3 100644 --- a/src/test/run-pass/type-ptr.rs +++ b/src/test/run-pass/type-ptr.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // pretty-expanded FIXME #23616 fn f(a: *const isize) -> *const isize { return a; } diff --git a/src/test/run-pass/type-sizes.rs b/src/test/run-pass/type-sizes.rs index 5eb079988f5be7e1b3d9937290ec2f90e8ca80b9..26cadf16e29dd7177eb0a67a48b3667e00463f60 100644 --- a/src/test/run-pass/type-sizes.rs +++ b/src/test/run-pass/type-sizes.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] #![feature(never_type)] use std::mem::size_of; diff --git a/src/test/run-pass/typeck_type_placeholder_1.rs b/src/test/run-pass/typeck_type_placeholder_1.rs index 113d52ffb35b9c0f6513670a66330d97dcef4b2f..ee482ea3c52f91f0e6c567479285f1398e176193 100644 --- a/src/test/run-pass/typeck_type_placeholder_1.rs +++ b/src/test/run-pass/typeck_type_placeholder_1.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // This test checks that the `_` type placeholder works // correctly for enabling type inference. diff --git a/src/test/run-pass/typeclasses-eq-example-static.rs b/src/test/run-pass/typeclasses-eq-example-static.rs index d386f27d8c23b3a16b9f0a49c69ebea11d56f4c7..fecc6d705095c0d781b2784a0a14c98569026751 100644 --- a/src/test/run-pass/typeclasses-eq-example-static.rs +++ b/src/test/run-pass/typeclasses-eq-example-static.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(dead_code)] #![feature(box_syntax)] // Example from lkuper's intern talk, August 2012 -- now with static diff --git a/src/test/run-pass/typeclasses-eq-example.rs b/src/test/run-pass/typeclasses-eq-example.rs index 8e8fd9bf648431c31b2a69894efb6ba32ad1285a..f2b6e9cd2551ef7330d5a76a1c6df69005967470 100644 --- a/src/test/run-pass/typeclasses-eq-example.rs +++ b/src/test/run-pass/typeclasses-eq-example.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(dead_code)] #![feature(box_syntax)] // Example from lkuper's intern talk, August 2012. diff --git a/src/test/run-pass/typeid-intrinsic.rs b/src/test/run-pass/typeid-intrinsic.rs index 54d5415a5539b6e952803c7c597434da22e3c054..2dbe2c0a402854fd9126224525fcf409ae1674c2 100644 --- a/src/test/run-pass/typeid-intrinsic.rs +++ b/src/test/run-pass/typeid-intrinsic.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(deprecated)] // aux-build:typeid-intrinsic-aux1.rs // aux-build:typeid-intrinsic-aux2.rs diff --git a/src/test/run-pass/typestate-cfg-nesting.rs b/src/test/run-pass/typestate-cfg-nesting.rs index 2acaff262690bb1771a3086114a39aa54944b640..a1047d47b4be9085be30759261698ded04257365 100644 --- a/src/test/run-pass/typestate-cfg-nesting.rs +++ b/src/test/run-pass/typestate-cfg-nesting.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_assignments)] +#![allow(unknown_lints)] // pretty-expanded FIXME #23616 #![allow(dead_assignment)] diff --git a/src/test/run-pass/underscore-lifetimes.rs b/src/test/run-pass/underscore-lifetimes.rs index 4dd1a565c9f14b330439bafdd68cfb1e843cdb34..0f601021f6aa348c2b42a50536a950d7a8a9bea7 100644 --- a/src/test/run-pass/underscore-lifetimes.rs +++ b/src/test/run-pass/underscore-lifetimes.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] struct Foo<'a>(&'a u8); fn foo(x: &u8) -> Foo<'_> { diff --git a/src/test/run-pass/unit.rs b/src/test/run-pass/unit.rs index 67eceba020c803a03a98bf297e04c3e3fff3c78a..17ed465f99531ff270d015bbc37d6f5640340ca1 100644 --- a/src/test/run-pass/unit.rs +++ b/src/test/run-pass/unit.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_assignments)] +#![allow(unknown_lints)] // pretty-expanded FIXME #23616 #![allow(unused_variables)] diff --git a/src/test/run-pass/unreachable-code-1.rs b/src/test/run-pass/unreachable-code-1.rs index 6448056fb11f4db1448b7ce57008c48c09890b9d..4e2570695069753599cb67e0b66d0b68990ed17c 100644 --- a/src/test/run-pass/unreachable-code-1.rs +++ b/src/test/run-pass/unreachable-code-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(unreachable_code)] #![allow(unused_variables)] #![allow(dead_code)] diff --git a/src/test/run-pass/unreachable-code.rs b/src/test/run-pass/unreachable-code.rs index 5cb5e8c4f99cd9271053911f1750dec46f28e016..4fffe98e4b2472f4c0076898c15f61d5de07b661 100644 --- a/src/test/run-pass/unreachable-code.rs +++ b/src/test/run-pass/unreachable-code.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(dead_code)] #![allow(path_statements)] #![allow(unreachable_code)] diff --git a/src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs b/src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs index f3a2ad749a16824c1f0cff7c0c4f20d4f110f8b9..ac5a0db1cd2b993a32029317aae889dce1c08a79 100644 --- a/src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs +++ b/src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // // See also: compile-fail/unsafe-fn-called-from-safe.rs diff --git a/src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs b/src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs index 37c72ba8ab06565bb5cc9173a6fd823c0905a992..a40a764bfc228be42f87d8d21d01c138571038ee 100644 --- a/src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs +++ b/src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // // See also: compile-fail/unsafe-fn-called-from-safe.rs diff --git a/src/test/run-pass/unsized.rs b/src/test/run-pass/unsized.rs index 26f7b767988d240581d7bcb39cf838c352b06de7..6a58c9aa90b70c8786ea040debfbd37e1b5c5bea 100644 --- a/src/test/run-pass/unsized.rs +++ b/src/test/run-pass/unsized.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(type_alias_bounds)] +#![allow(dead_code)] // Test syntax checks for `?Sized` syntax. use std::marker::PhantomData; diff --git a/src/test/run-pass/unsized2.rs b/src/test/run-pass/unsized2.rs index 90b99f98533dee439dc64c93d06f8f7af5d80a35..e4480d7e97a4b147c8f23d0f18e32e8a8aa16014 100644 --- a/src/test/run-pass/unsized2.rs +++ b/src/test/run-pass/unsized2.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unconditional_recursion)] +#![allow(dead_code)] +#![allow(unused_variables)] +#![allow(unused_imports)] #![feature(box_syntax)] // Test sized-ness checking in substitution. diff --git a/src/test/run-pass/unwind-resource.rs b/src/test/run-pass/unwind-resource.rs index 85ee21e09025592244d37820aa4b0968e054132b..e0ddc854fa0825c46ee7a57c0ffa9a342f898c78 100644 --- a/src/test/run-pass/unwind-resource.rs +++ b/src/test/run-pass/unwind-resource.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] // ignore-emscripten no threads support use std::sync::mpsc::{channel, Sender}; diff --git a/src/test/run-pass/use-keyword-2.rs b/src/test/run-pass/use-keyword-2.rs index 60016f59594696aefa4b5b6abcf2cf0d2224c84f..c669b522ab2be16b1c4a03fb00f3233bcf1669b3 100644 --- a/src/test/run-pass/use-keyword-2.rs +++ b/src/test/run-pass/use-keyword-2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_variables)] pub struct A; mod test { diff --git a/src/test/run-pass/use-mod.rs b/src/test/run-pass/use-mod.rs index 49ad171eaa2b6ff699cbebb22f91ff5441ff53a0..3115a359ff1452afdcf67dd9d82290b9f3cbb086 100644 --- a/src/test/run-pass/use-mod.rs +++ b/src/test/run-pass/use-mod.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_imports)] // pretty-expanded FIXME #23616 pub use foo::bar::{self, First}; diff --git a/src/test/run-pass/use.rs b/src/test/run-pass/use.rs index 09a3849b9153bec7cdb201b3387105c86b8a4cfa..d6899e79152b8c27616b499e3e4c070a35a8f22d 100644 --- a/src/test/run-pass/use.rs +++ b/src/test/run-pass/use.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] // pretty-expanded FIXME #23616 #![allow(unused_imports)] diff --git a/src/test/run-pass/utf8_idents.rs b/src/test/run-pass/utf8_idents.rs index 579070a295adf90a0f4c40b668701eef3ff6147d..4614e47609a6612b22280c9771d47592730a4dfe 100644 --- a/src/test/run-pass/utf8_idents.rs +++ b/src/test/run-pass/utf8_idents.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. // +#![allow(non_snake_case)] #![feature(non_ascii_idents)] diff --git a/src/test/run-pass/variant-attributes.rs b/src/test/run-pass/variant-attributes.rs index 18987d1e016b1fa6a1a7f9d9212d34bf952447a6..0c92778cec474db01b6f54ed0aa2c565e378eb2a 100644 --- a/src/test/run-pass/variant-attributes.rs +++ b/src/test/run-pass/variant-attributes.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_attributes)] +#![allow(non_camel_case_types)] +#![allow(dead_code)] // pp-exact - Make sure we actually print the attributes // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/volatile-fat-ptr.rs b/src/test/run-pass/volatile-fat-ptr.rs index 03ba5587fcec86867c60de18c4c0ecd76fbeee7e..799917c4b0538f595d2d6b0ffd54302a2cdce9e5 100644 --- a/src/test/run-pass/volatile-fat-ptr.rs +++ b/src/test/run-pass/volatile-fat-ptr.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(stable_features)] #![feature(volatile)] use std::ptr::{read_volatile, write_volatile}; diff --git a/src/test/run-pass/warn-ctypes-inhibit.rs b/src/test/run-pass/warn-ctypes-inhibit.rs index 81a3c94eec3137fd612863539d7f595f6268cf45..0c059cb607e77b635432c15321288123201de55a 100644 --- a/src/test/run-pass/warn-ctypes-inhibit.rs +++ b/src/test/run-pass/warn-ctypes-inhibit.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] // compile-flags:-D improper-ctypes // pretty-expanded FIXME #23616 diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs index 35120e428a7bd3d508103707da582cebd2ee66a8..c688ec540da81e3152d79a414c4f18c3081d47b1 100644 --- a/src/test/run-pass/weird-exprs.rs +++ b/src/test/run-pass/weird-exprs.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] +#![allow(dead_code)] +#![allow(unreachable_code)] +#![allow(unused_parens)] // compile-flags: -Z borrowck=compare #![recursion_limit = "128"] diff --git a/src/test/run-pass/wf-bound-region-in-object-type.rs b/src/test/run-pass/wf-bound-region-in-object-type.rs index cdb5e3fe1d4ae59e4d23d427eb31252985281b71..b71f633bef45c79da6d35d6c67de51447a1c489f 100644 --- a/src/test/run-pass/wf-bound-region-in-object-type.rs +++ b/src/test/run-pass/wf-bound-region-in-object-type.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] +#![allow(unused_variables)] // Test that the `wf` checker properly handles bound regions in object // types. Compiling this code used to trigger an ICE. diff --git a/src/test/run-pass/writealias.rs b/src/test/run-pass/writealias.rs index 7339fe47dc297125301d51e1453a5f6225e5e46b..d190e91575eccf5e434b3df4eeb8897069dc83b9 100644 --- a/src/test/run-pass/writealias.rs +++ b/src/test/run-pass/writealias.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(dead_code)] use std::sync::Mutex; diff --git a/src/test/run-pass/wrong-hashset-issue-42918.rs b/src/test/run-pass/wrong-hashset-issue-42918.rs index 5a23adeceb5c01e4258cf9e7ac3c95a033f5b83d..0fcd3efd9cec53938c4e58383d05ad0b04dfd071 100644 --- a/src/test/run-pass/wrong-hashset-issue-42918.rs +++ b/src/test/run-pass/wrong-hashset-issue-42918.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. // +#![allow(dead_code)] // compile-flags: -O use std::collections::HashSet; diff --git a/src/test/run-pass/x86stdcall2.rs b/src/test/run-pass/x86stdcall2.rs index bbdd65f7e5b2de33c645c62728b23b59c4d70904..8ea7ec67f1b316cc3c165e3a1b374a4c0cb66742 100644 --- a/src/test/run-pass/x86stdcall2.rs +++ b/src/test/run-pass/x86stdcall2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(non_camel_case_types)] pub type HANDLE = usize; pub type DWORD = u32; pub type SIZE_T = u32; diff --git a/src/test/run-pass/yield.rs b/src/test/run-pass/yield.rs index db884638622d190ba23d5e81f70148c1449fa623..9910c53492686abbb5d22f1cc5dfc081449012f1 100644 --- a/src/test/run-pass/yield.rs +++ b/src/test/run-pass/yield.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(unused_mut)] // ignore-emscripten no threads support use std::thread; diff --git a/src/test/run-pass/yield1.rs b/src/test/run-pass/yield1.rs index cab68794e1cc4d6a9ef04b731f8435532250ec2b..0b60345233947e18ee253b3ecaf43c2a238922e5 100644 --- a/src/test/run-pass/yield1.rs +++ b/src/test/run-pass/yield1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(unused_must_use)] +#![allow(unused_mut)] // ignore-emscripten no threads support use std::thread;