Skip to content

Commit

Permalink
reword label as per review
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Sep 5, 2018
1 parent 941b2e3 commit bebecf8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Expand Up @@ -204,7 +204,7 @@ fn resolve_struct_error<'sess, 'a>(resolver: &'sess Resolver,
}) {
err.span_label(
reduce_impl_span_to_impl_keyword(cm, impl_span),
"`Self` type implicitly declared here, on the `impl`",
"`Self` type implicitly declared here, by this `impl`",
);
}
match (maybe_trait_defid, maybe_impl_defid) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/error-codes/E0401.stderr
Expand Up @@ -24,7 +24,7 @@ error[E0401]: can't use type parameters from outer function
--> $DIR/E0401.rs:32:25
|
LL | impl<T> Iterator for A<T> {
| ---- `Self` type implicitly declared here, on the `impl`
| ---- `Self` type implicitly declared here, by this `impl`
...
LL | fn helper(sel: &Self) -> u8 { //~ ERROR E0401
| ^^^^
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/use-self-in-inner-fn.rs
Expand Up @@ -11,7 +11,7 @@
struct A;

impl A {
//~^ NOTE `Self` type implicitly declared here, on the `impl`
//~^ NOTE `Self` type implicitly declared here, by this `impl`
fn banana(&mut self) {
fn peach(this: &Self) {
//~^ ERROR can't use type parameters from outer function
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/use-self-in-inner-fn.stderr
Expand Up @@ -2,7 +2,7 @@ error[E0401]: can't use type parameters from outer function
--> $DIR/use-self-in-inner-fn.rs:16:25
|
LL | impl A {
| ---- `Self` type implicitly declared here, on the `impl`
| ---- `Self` type implicitly declared here, by this `impl`
...
LL | fn peach(this: &Self) {
| ^^^^
Expand Down

0 comments on commit bebecf8

Please sign in to comment.