Skip to content

Commit 510976b

Browse files
authored
Rollup merge of rust-lang#64078 - Mark-Simulacrum:compiletest-lint-unused, r=petrochenkov
compiletest: disable -Aunused for run-pass tests Disabled the flag, but that led to quite a bit of fall out -- I think most of it is benign but I've not investigated thoroughly. r? @petrochenkov
2 parents 2b8116d + 6fdbece commit 510976b

File tree

59 files changed

+131
-69
lines changed

Some content is hidden

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

59 files changed

+131
-69
lines changed

src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
// check-pass
22

33
#![feature(associated_type_bounds)]
44

src/test/ui/associated-type-bounds/fn-apit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
// aux-build:fn-aux.rs
33

4+
#![allow(unused)]
45
#![feature(associated_type_bounds)]
56

67
extern crate fn_aux;

src/test/ui/associated-type-bounds/fn-dyn-apit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
// aux-build:fn-dyn-aux.rs
33

4+
#![allow(unused)]
45
#![feature(associated_type_bounds)]
56

67
extern crate fn_dyn_aux;

src/test/ui/associated-type-bounds/fn-inline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
// aux-build:fn-aux.rs
33

4+
#![allow(unused)]
45
#![feature(associated_type_bounds)]
56

67
extern crate fn_aux;

src/test/ui/associated-type-bounds/fn-where.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
// aux-build:fn-aux.rs
33

4+
#![allow(unused)]
45
#![feature(associated_type_bounds)]
56

67
extern crate fn_aux;

src/test/ui/associated-type-bounds/fn-wrap-apit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// aux-build:fn-aux.rs
33

44
#![feature(associated_type_bounds)]
5+
#![allow(dead_code)]
56

67
extern crate fn_aux;
78

src/test/ui/associated-type-bounds/struct-bounds.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// run-pass
22

3+
#![allow(unused)]
34
#![feature(associated_type_bounds)]
45

56
trait Tr1 { type As1; }

src/test/ui/async-await/argument-patterns.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// edition:2018
2-
// run-pass
2+
// check-pass
33

4-
#![allow(unused_variables)]
54
#![deny(unused_mut)]
65

76
type A = Vec<u32>;

src/test/ui/async-await/async-await.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// run-pass
22

3+
#![allow(unused)]
4+
35
// edition:2018
46
// aux-build:arc_wake.rs
57

src/test/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
// run-pass
44

55
#![deny(dead_code)]
6+
#![allow(unused_variables)]
7+
#![allow(unused_must_use)]
8+
#![allow(path_statements)]
69

710
// Test that the drop order for locals in a fn and async fn matches up.
811
extern crate arc_wake;
912

1013
use arc_wake::ArcWake;
1114
use std::cell::RefCell;
1215
use std::future::Future;
13-
use std::marker::PhantomData;
1416
use std::pin::Pin;
1517
use std::rc::Rc;
1618
use std::sync::Arc;
@@ -42,7 +44,7 @@ struct NeverReady;
4244

4345
impl Future for NeverReady {
4446
type Output = ();
45-
fn poll(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
47+
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
4648
Poll::Pending
4749
}
4850
}

0 commit comments

Comments
 (0)