Skip to content

Commit bebecf8

Browse files
committed
reword label as per review
1 parent 941b2e3 commit bebecf8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn resolve_struct_error<'sess, 'a>(resolver: &'sess Resolver,
204204
}) {
205205
err.span_label(
206206
reduce_impl_span_to_impl_keyword(cm, impl_span),
207-
"`Self` type implicitly declared here, on the `impl`",
207+
"`Self` type implicitly declared here, by this `impl`",
208208
);
209209
}
210210
match (maybe_trait_defid, maybe_impl_defid) {

src/test/ui/error-codes/E0401.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error[E0401]: can't use type parameters from outer function
2424
--> $DIR/E0401.rs:32:25
2525
|
2626
LL | impl<T> Iterator for A<T> {
27-
| ---- `Self` type implicitly declared here, on the `impl`
27+
| ---- `Self` type implicitly declared here, by this `impl`
2828
...
2929
LL | fn helper(sel: &Self) -> u8 { //~ ERROR E0401
3030
| ^^^^

src/test/ui/use-self-in-inner-fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
struct A;
1212

1313
impl A {
14-
//~^ NOTE `Self` type implicitly declared here, on the `impl`
14+
//~^ NOTE `Self` type implicitly declared here, by this `impl`
1515
fn banana(&mut self) {
1616
fn peach(this: &Self) {
1717
//~^ ERROR can't use type parameters from outer function

src/test/ui/use-self-in-inner-fn.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0401]: can't use type parameters from outer function
22
--> $DIR/use-self-in-inner-fn.rs:16:25
33
|
44
LL | impl A {
5-
| ---- `Self` type implicitly declared here, on the `impl`
5+
| ---- `Self` type implicitly declared here, by this `impl`
66
...
77
LL | fn peach(this: &Self) {
88
| ^^^^

0 commit comments

Comments
 (0)