Skip to content

Commit 0ed3b93

Browse files
committed
Allow various lints to get the run-pass tests working under ui/.
1 parent 98235a0 commit 0ed3b93

13 files changed

+13
-2
lines changed

src/test/ui/run-pass/allocator/allocator-alloc-one.rs

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

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

1314
#![feature(allocator_api, nonnull)]
1415

src/test/ui/run-pass/binding/resolve-issue-2428.rs

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

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

1414
const foo: isize = 4 >> 1;
1515
enum bs { thing = foo }

src/test/ui/run-pass/drop/cleanup-arm-conditional.rs

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

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

1314
// Test that cleanup scope for temporaries created in a match
1415
// arm is confined to the match arm itself.

src/test/ui/run-pass/drop/cleanup-rvalue-for-scope.rs

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

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

1314
// Test that the lifetime of rvalues in for loops is extended
1415
// to the for loop itself.

src/test/ui/run-pass/drop/cleanup-rvalue-scopes.rs

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

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

1314
// Test that destructors for rvalue temporaries run either at end of
1415
// statement or end of block, as appropriate given the temporary

src/test/ui/run-pass/drop/resource-assign-is-not-copy.rs

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

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

1314
use std::cell::Cell;
1415

src/test/ui/run-pass/drop/resource-destruct.rs

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

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

1314
use std::cell::Cell;
1415

src/test/ui/run-pass/foreign/align-with-extern-c-fn.rs

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

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

1314
// #45662
1415

src/test/ui/run-pass/foreign/crt-static-off-works.rs

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

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

1314
// compile-flags:-C target-feature=-crt-static -Z unstable-options
1415
// ignore-musl - requires changing the linker which is hard

src/test/ui/run-pass/foreign/crt-static-on-works.rs

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

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

1314
// compile-flags:-C target-feature=+crt-static -Z unstable-options
1415

src/test/ui/run-pass/functions-closures/block-arg-call-as.rs

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

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

1414
fn asBlock<F>(f: F) -> usize where F: FnOnce() -> usize {
1515
return f();

src/test/ui/run-pass/imports/use.rs

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

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

1314
// pretty-expanded FIXME #23616
1415

src/test/ui/run-pass/intrinsics/typeid-intrinsic.rs

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

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

1314
// aux-build:typeid-intrinsic-aux1.rs
1415
// aux-build:typeid-intrinsic-aux2.rs

0 commit comments

Comments
 (0)