Skip to content

Commit b8e86e6

Browse files
committed
Unify wording of resolve error
Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`". ``` error[E0433]: cannot find `nonexistent` in `existent` --> $DIR/custom_attr_multisegment_error.rs:5:13 | LL | #[existent::nonexistent] | ^^^^^^^^^^^ could not find `nonexistent` in `existent` ```
1 parent d5643a0 commit b8e86e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/ui/crashes/unreachable-array-or-slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ struct Foo(isize, isize, isize, isize);
22

33
pub fn main() {
44
let Self::anything_here_kills_it(a, b, ..) = Foo(5, 5, 5, 5);
5-
//~^ ERROR: failed to resolve
5+
//~^ ERROR: cannot find `Self` in this scope
66
match [5, 5, 5, 5] {
77
[..] => {},
88
}

tests/ui/crashes/unreachable-array-or-slice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions
1+
error[E0433]: cannot find `Self` in this scope
22
--> tests/ui/crashes/unreachable-array-or-slice.rs:4:9
33
|
44
LL | let Self::anything_here_kills_it(a, b, ..) = Foo(5, 5, 5, 5);

0 commit comments

Comments
 (0)