Skip to content

Commit 43061d3

Browse files
committed
Allow various lints in src/test/run-pass-fulldeps/ so that it can continue under ui test mode.
(One of them led me to file #54288.)
1 parent 1df6d42 commit 43061d3

37 files changed

+56
-0
lines changed

src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
1112
// ignore-cross-compile
1213

1314
#![feature(rustc_private)]

src/test/run-pass-fulldeps/derive-no-std-not-supported.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
#![feature(rustc_private)]
1213
#![no_std]
1314

src/test/run-pass-fulldeps/deriving-encodable-decodable-box.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
1112

1213
#![feature(box_syntax)]
1314
#![feature(rustc_private)]

src/test/run-pass-fulldeps/deriving-encodable-decodable-cell-refcell.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
1112
// This briefly tests the capability of `Cell` and `RefCell` to implement the
1213
// `Encodable` and `Decodable` traits via `#[derive(Encodable, Decodable)]`
1314

src/test/run-pass-fulldeps/deriving-hygiene.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(non_upper_case_globals)]
1112
#![feature(rustc_private)]
1213
extern crate serialize;
1314

src/test/run-pass-fulldeps/dropck_tarena_sound_drop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unknown_lints)]
1112
// Check that an arena (TypedArena) can carry elements whose drop
1213
// methods might access borrowed data, as long as the borrowed data
1314
// has lifetime that strictly outlives the arena itself.

src/test/run-pass-fulldeps/issue-11881.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_must_use)]
12+
#![allow(dead_code)]
13+
#![allow(unused_imports)]
1114

1215
#![feature(rustc_private)]
1316

src/test/run-pass-fulldeps/issue-14021.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_mut)]
12+
#![allow(unused_imports)]
1113
#![feature(rustc_private)]
1214

1315
extern crate serialize;

src/test/run-pass-fulldeps/issue-15149.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_variables)]
1112
// no-prefer-dynamic
1213
// ignore-cross-compile
1314

src/test/run-pass-fulldeps/issue-15924.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
12+
#![allow(unused_must_use)]
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(rustc_private)]

src/test/run-pass-fulldeps/issue-18763-quote-token-tree.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
12+
#![allow(unused_imports)]
1113
// ignore-cross-compile
1214
#![feature(quote, rustc_private)]
1315

src/test/run-pass-fulldeps/issue-24972.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
#![feature(rustc_private)]
1213

1314
extern crate serialize;

src/test/run-pass-fulldeps/issue-2804.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(non_camel_case_types)]
12+
#![allow(dead_code)]
1113
#![feature(rustc_private)]
1214

1315
extern crate serialize;

src/test/run-pass-fulldeps/issue-4016.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112

1213
#![feature(rustc_private)]
1314

src/test/run-pass-fulldeps/issue-40663.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// aux-build:custom_derive_plugin.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/macro-crate-multi-decorator-literals.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(plugin_as_library)]
12+
#![allow(unused_imports)]
1113
// aux-build:macro_crate_test.rs
1214
// ignore-stage1
1315

src/test/run-pass-fulldeps/macro-crate-multi-decorator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(plugin_as_library)]
12+
#![allow(dead_code)]
13+
#![allow(unused_variables)]
14+
#![allow(unused_imports)]
1115
// aux-build:macro_crate_test.rs
1216
// ignore-stage1
1317

src/test/run-pass-fulldeps/macro-crate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(plugin_as_library)]
12+
#![allow(dead_code)]
1113
// aux-build:macro_crate_test.rs
1214
// ignore-stage1
1315

src/test/run-pass-fulldeps/macro-quote-cond.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_parens)]
1112
// aux-build:cond_plugin.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/call-site.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_variables)]
12+
#![allow(unused_imports)]
1113
// aux-build:call-site.rs
1214
// ignore-stage1
1315

src/test/run-pass-fulldeps/proc-macro/derive-attr-cfg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// aux-build:derive-attr-cfg.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/derive-same-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(path_statements)]
12+
#![allow(dead_code)]
1113
// aux-build:derive-same-struct.rs
1214
// ignore-stage1
1315

src/test/run-pass-fulldeps/proc-macro/derive-two-attrs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// aux-build:derive-two-attrs.rs
1213

1314
extern crate derive_two_attrs as foo;

src/test/run-pass-fulldeps/proc-macro/derive-union.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_variables)]
1112
// aux-build:derive-union.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/empty-crate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
1112
// aux-build:empty-crate.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/hygiene_example.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_macros)]
1112
// aux-build:hygiene_example_codegen.rs
1213
// aux-build:hygiene_example.rs
1314
// ignore-stage1

src/test/run-pass-fulldeps/proc-macro/issue-39889.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// aux-build:issue-39889.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/issue-50061.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(path_statements)]
1112
// aux-build:issue-50061.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/lifetimes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_variables)]
1112
// aux-build:lifetimes.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/proc-macro/load-two.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(path_statements)]
12+
#![allow(dead_code)]
1113
// aux-build:derive-atob.rs
1214
// aux-build:derive-ctod.rs
1315
// ignore-stage1

src/test/run-pass-fulldeps/proc-macro/smoke.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_must_use)]
12+
#![allow(path_statements)]
1113
// aux-build:derive-a.rs
1214
// ignore-stage1
1315

src/test/run-pass-fulldeps/proc-macro/struct-field-macro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// aux-build:derive-nothing.rs
1213
// ignore-stage1
1314

src/test/run-pass-fulldeps/qquote.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_imports)]
1112
// ignore-cross-compile
1213

1314
#![feature(quote, rustc_private)]

src/test/run-pass-fulldeps/quote-tokens.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
12+
#![allow(unused_variables)]
13+
#![allow(unused_imports)]
1114
// ignore-cross-compile
1215
#![feature(quote, rustc_private)]
1316

src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
1112
// ignore-cross-compile
1213
#![feature(quote, rustc_private)]
1314
#![deny(unused_variables)]

src/test/run-pass-fulldeps/regions-mock-tcx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(dead_code)]
12+
#![allow(unused_imports)]
1113

1214
// Test a sample usage pattern for regions. Makes use of the
1315
// following features:

src/test/run-pass-fulldeps/rename-directory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_must_use)]
12+
#![allow(unused_imports)]
1113
// This test can't be a unit test in std,
1214
// because it needs TempDir, which is in extra
1315

0 commit comments

Comments
 (0)