Skip to content

Commit c9f2c2d

Browse files
committed
Allow various lints as part of ui-ifying src/test/run-pass suite.
1 parent d28c5ba commit c9f2c2d

File tree

187 files changed

+296
-0
lines changed

Some content is hidden

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

187 files changed

+296
-0
lines changed

src/test/run-pass/abort-on-c-abi.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_must_use)]
1112
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
1213
// we never unwind through them.
1314

src/test/run-pass/alias-uninit-value.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(non_camel_case_types)]
12+
#![allow(dead_code)]
13+
1114

1215

1316
// Regression test for issue #374

src/test/run-pass/align-with-extern-c-fn.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(stable_features)]
12+
#![allow(unused_variables)]
13+
1114
// #45662
1215

1316
#![feature(repr_align)]

src/test/run-pass/alignment-gep-tup-like-1.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(non_camel_case_types)]
12+
#![allow(dead_code)]
13+
1114
#![feature(box_syntax)]
1215

1316
struct pair<A,B> {

src/test/run-pass/alloca-from-derived-tydesc.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(non_camel_case_types)]
12+
#![allow(dead_code)]
13+
1114

1215
// pretty-expanded FIXME #23616
1316

src/test/run-pass/allocator-alloc-one.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(stable_features)]
12+
1113
#![feature(allocator_api, nonnull)]
1214

1315
use std::alloc::{Alloc, Global, Layout, handle_alloc_error};

src/test/run-pass/atomic-access-bool.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(stable_features)]
1112
#![feature(atomic_access)]
1213
use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT};
1314
use std::sync::atomic::Ordering::*;

src/test/run-pass/atomic-compare_exchange.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(stable_features)]
12+
1113
#![feature(extended_compare_and_swap)]
1214
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
1315
use std::sync::atomic::Ordering::*;

src/test/run-pass/atomic-print.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(deprecated)]
1113
// ignore-cloudabi no process support
1214
// ignore-emscripten no threads support
1315

src/test/run-pass/attr-before-view-item.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_attributes)]
12+
1113
// pretty-expanded FIXME #23616
1214

1315
#![feature(custom_attribute, test)]

0 commit comments

Comments
 (0)