Skip to content

Commit f10c6a8

Browse files
committed
bless tests/ui/
1 parent c8bc78f commit f10c6a8

File tree

196 files changed

+253
-67
lines changed

Some content is hidden

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

196 files changed

+253
-67
lines changed

tests/ui/anon-params/anon-params-deprecated.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// check-pass
55
// edition:2015
66
// run-rustfix
7+
#![allow(dead_code)]
78

89
trait T {
910
fn foo(_: i32); //~ WARNING anonymous parameters are deprecated

tests/ui/anon-params/anon-params-deprecated.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// check-pass
55
// edition:2015
66
// run-rustfix
7+
#![allow(dead_code)]
78

89
trait T {
910
fn foo(i32); //~ WARNING anonymous parameters are deprecated

tests/ui/anon-params/anon-params-deprecated.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: anonymous parameters are deprecated and will be removed in the next edition
2-
--> $DIR/anon-params-deprecated.rs:9:12
2+
--> $DIR/anon-params-deprecated.rs:10:12
33
|
44
LL | fn foo(i32);
55
| ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32`
@@ -13,7 +13,7 @@ LL | #![warn(anonymous_parameters)]
1313
| ^^^^^^^^^^^^^^^^^^^^
1414

1515
warning: anonymous parameters are deprecated and will be removed in the next edition
16-
--> $DIR/anon-params-deprecated.rs:12:30
16+
--> $DIR/anon-params-deprecated.rs:13:30
1717
|
1818
LL | fn bar_with_default_impl(String, String) {}
1919
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`
@@ -22,7 +22,7 @@ LL | fn bar_with_default_impl(String, String) {}
2222
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
2323

2424
warning: anonymous parameters are deprecated and will be removed in the next edition
25-
--> $DIR/anon-params-deprecated.rs:12:38
25+
--> $DIR/anon-params-deprecated.rs:13:38
2626
|
2727
LL | fn bar_with_default_impl(String, String) {}
2828
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`

tests/ui/associated-consts/associated-const-outer-ty-refs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// run-pass
2+
#![allow(dead_code)]
3+
24
trait Lattice {
35
const BOTTOM: Self;
46
}

tests/ui/associated-consts/associated-const-type-parameters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(dead_code)]
33
trait Foo {
44
const X: i32;
55
fn get_x() -> i32 {

tests/ui/associated-type-bounds/dyn-impl-trait-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(dead_code)]
33
#![feature(associated_type_bounds)]
44

55
use std::ops::Add;

tests/ui/associated-type-bounds/dyn-rpit-and-let.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// FIXME: uncomment let binding types below when `impl_trait_in_bindings` feature is fixed.
44

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

78
use std::ops::Add;

tests/ui/associated-type-bounds/rpit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(dead_code)]
33
#![feature(associated_type_bounds)]
44

55
use std::ops::Add;

tests/ui/associated-type-bounds/suggest-contraining-assoc-type-because-of-assoc-const.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-rustfix
2+
#![allow(dead_code)]
23
trait O {
34
type M;
45
}

tests/ui/associated-type-bounds/suggest-contraining-assoc-type-because-of-assoc-const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-rustfix
2+
#![allow(dead_code)]
23
trait O {
34
type M;
45
}

0 commit comments

Comments
 (0)