Skip to content

Commit bd2f08c

Browse files
committed
Bless tests.
1 parent fa2bc4f commit bd2f08c

8 files changed

+34
-17
lines changed

src/test/ui/coherence/coherence_inherent.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ LL | s.the_fn();
55
| ^^^^^^ method not found in `&TheStruct`
66
|
77
= help: items from traits can only be used if the trait is in scope
8-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
9-
`use Lib::TheTrait;`
8+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
9+
|
10+
LL | use Lib::TheTrait;
11+
|
1012

1113
error: aborting due to previous error
1214

src/test/ui/coherence/coherence_inherent_cc.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ LL | s.the_fn();
55
| ^^^^^^ method not found in `&TheStruct`
66
|
77
= help: items from traits can only be used if the trait is in scope
8-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
9-
`use coherence_inherent_cc_lib::TheTrait;`
8+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
9+
|
10+
LL | use coherence_inherent_cc_lib::TheTrait;
11+
|
1012

1113
error: aborting due to previous error
1214

src/test/ui/hygiene/no_implicit_prelude.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ LL | ().clone()
2323
| ^^^^^ method not found in `()`
2424
|
2525
= help: items from traits can only be used if the trait is in scope
26-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
27-
`use std::clone::Clone;`
2826
= note: this error originates in the macro `::bar::m` (in Nightly builds, run with -Z macro-backtrace for more info)
27+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
28+
|
29+
LL | use std::clone::Clone;
30+
|
2931

3032
error: aborting due to 2 previous errors
3133

src/test/ui/hygiene/trait_items.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ LL | pub macro m() { ().f() }
1111
| ^ method not found in `()`
1212
|
1313
= help: items from traits can only be used if the trait is in scope
14-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
15-
`use foo::T;`
1614
= note: this error originates in the macro `::baz::m` (in Nightly builds, run with -Z macro-backtrace for more info)
15+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
16+
|
17+
LL | use foo::T;
18+
|
1719

1820
error: aborting due to previous error
1921

src/test/ui/issues/issue-10465.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ LL | b.foo();
55
| ^^^ method not found in `&B`
66
|
77
= help: items from traits can only be used if the trait is in scope
8-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
9-
`use a::A;`
8+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
9+
|
10+
LL | use a::A;
11+
|
1012

1113
error: aborting due to previous error
1214

src/test/ui/rust-2018/trait-import-suggestions.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ LL | x.foobar();
88
| ^^^^^^ method not found in `u32`
99
|
1010
= help: items from traits can only be used if the trait is in scope
11-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
12-
`use crate::foo::foobar::Foobar;`
11+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
12+
|
13+
LL | use crate::foo::foobar::Foobar;
14+
|
1315

1416
error[E0599]: no method named `bar` found for type `u32` in the current scope
1517
--> $DIR/trait-import-suggestions.rs:28:7

src/test/ui/rust-2021/future-prelude-collision-shadow.stderr

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ LL | fn try_into(self) -> Result<T, Self::Error>;
1515
| the method is available for `Rc<u8>` here
1616
|
1717
= help: items from traits can only be used if the trait is in scope
18-
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
19-
candidate #1: `use crate::m::TryIntoU32;`
20-
candidate #2: `use std::convert::TryInto;`
2118
help: consider wrapping the receiver expression with the appropriate type
2219
|
2320
LL | let _: u32 = Box::new(3u8).try_into().unwrap();
@@ -34,6 +31,12 @@ help: consider wrapping the receiver expression with the appropriate type
3431
|
3532
LL | let _: u32 = Rc::new(3u8).try_into().unwrap();
3633
| ++++++++ +
34+
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
35+
|
36+
LL | use crate::m::TryIntoU32;
37+
|
38+
LL | use std::convert::TryInto;
39+
|
3740

3841
error: aborting due to previous error
3942

src/test/ui/underscore-imports/shadow.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ LL | x.deref();
55
| ^^^^^ method not found in `&()`
66
|
77
= help: items from traits can only be used if the trait is in scope
8-
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
9-
`use std::ops::Deref;`
8+
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
9+
|
10+
LL | use std::ops::Deref;
11+
|
1012

1113
error: aborting due to previous error
1214

0 commit comments

Comments
 (0)