Skip to content

Commit 9daeaa8

Browse files
committed
review comments: change wording
1 parent 04cf770 commit 9daeaa8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/librustc_resolve/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<'a> Resolver<'a> {
176176
} else {
177177
err.span_label(
178178
span,
179-
format!("a field by this name exists in `Self::{}`", path_str),
179+
"a field by this name exists in `Self`",
180180
);
181181
}
182182
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0425]: cannot find value `banana` in this scope
22
--> $DIR/issue-60057.rs:8:21
33
|
44
LL | banana: banana
5-
| ^^^^^^ a field by this name exists in `Self::banana`
5+
| ^^^^^^ a field by this name exists in `Self`
66

77
error[E0425]: cannot find value `banana` in this scope
88
--> $DIR/issue-60057.rs:14:21

src/test/ui/resolve/issue-2356.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ error[E0425]: cannot find value `whiskers` in this scope
2020
--> $DIR/issue-2356.rs:39:5
2121
|
2222
LL | whiskers -= other;
23-
| ^^^^^^^^ a field by this name exists in `Self::whiskers`
23+
| ^^^^^^^^ a field by this name exists in `Self`
2424

2525
error[E0425]: cannot find function `shave` in this scope
2626
--> $DIR/issue-2356.rs:41:5
@@ -86,7 +86,7 @@ error[E0425]: cannot find value `whiskers` in this scope
8686
--> $DIR/issue-2356.rs:84:5
8787
|
8888
LL | whiskers = 4;
89-
| ^^^^^^^^ a field by this name exists in `Self::whiskers`
89+
| ^^^^^^^^ a field by this name exists in `Self`
9090

9191
error[E0425]: cannot find function `purr_louder` in this scope
9292
--> $DIR/issue-2356.rs:86:5

src/test/ui/resolve/unresolved_static_type_field.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0425]: cannot find value `cx` in this scope
22
--> $DIR/unresolved_static_type_field.rs:9:11
33
|
44
LL | f(cx);
5-
| ^^ a field by this name exists in `Self::cx`
5+
| ^^ a field by this name exists in `Self`
66

77
error: aborting due to previous error
88

0 commit comments

Comments
 (0)