Skip to content

Commit 8d51667

Browse files
committed
fix typo
1 parent 75bb675 commit 8d51667

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/rustc_hir_analysis/src/impl_wf_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub(crate) fn enforce_impl_lifetime_params_are_constrained(
165165
};
166166
diag.span_suggestion_verbose(
167167
span,
168-
"consider using the named lifetime here instead of an implict \
168+
"consider using the named lifetime here instead of an implicit \
169169
lifetime",
170170
sugg,
171171
Applicability::MaybeIncorrect,

tests/ui/lifetimes/missing-lifetime-in-assoc-type-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ impl<'a> IntoIterator for &S {
55
//~^ ERROR E0207
66
//~| NOTE there is a named lifetime specified on the impl block you could use
77
//~| NOTE unconstrained lifetime parameter
8-
//~| HELP consider using the named lifetime here instead of an implict lifetime
8+
//~| HELP consider using the named lifetime here instead of an implicit lifetime
99
type Item = &T;
1010
//~^ ERROR in the trait associated type
1111
//~| HELP consider using the lifetime from the impl block

tests/ui/lifetimes/missing-lifetime-in-assoc-type-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait,
1818
LL | impl<'a> IntoIterator for &S {
1919
| ^^ unconstrained lifetime parameter
2020
|
21-
help: consider using the named lifetime here instead of an implict lifetime
21+
help: consider using the named lifetime here instead of an implicit lifetime
2222
|
2323
LL | impl<'a> IntoIterator for &'a S {
2424
| ++

tests/ui/lifetimes/missing-lifetime-in-assoc-type-5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ impl<'a> IntoIterator for &'_ S {
55
//~^ ERROR E0207
66
//~| NOTE there is a named lifetime specified on the impl block you could use
77
//~| NOTE unconstrained lifetime parameter
8-
//~| HELP consider using the named lifetime here instead of an implict lifetime
8+
//~| HELP consider using the named lifetime here instead of an implicit lifetime
99
type Item = &T;
1010
//~^ ERROR in the trait associated type
1111
//~| HELP consider using the lifetime from the impl block

tests/ui/lifetimes/missing-lifetime-in-assoc-type-5.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait,
1818
LL | impl<'a> IntoIterator for &'_ S {
1919
| ^^ unconstrained lifetime parameter
2020
|
21-
help: consider using the named lifetime here instead of an implict lifetime
21+
help: consider using the named lifetime here instead of an implicit lifetime
2222
|
2323
LL - impl<'a> IntoIterator for &'_ S {
2424
LL + impl<'a> IntoIterator for &'a S {

0 commit comments

Comments
 (0)