Skip to content

Commit 9b1b6a3

Browse files
committed
EII type checking
1 parent c4f82aa commit 9b1b6a3

File tree

7 files changed

+499
-1
lines changed

7 files changed

+499
-1
lines changed

compiler/rustc_hir_analysis/messages.ftl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ hir_analysis_drop_impl_reservation = reservation `Drop` impls are not supported
165165
hir_analysis_duplicate_precise_capture = cannot capture parameter `{$name}` twice
166166
.label = parameter captured again here
167167
168+
hir_analysis_eii_with_generics =
169+
#[{$eii_name}] cannot have generic parameters other than lifetimes
170+
.label = required by this attribute
171+
168172
hir_analysis_empty_specialization = specialization impl does not specialize any associated items
169173
.note = impl is a specialization of this impl
170174
@@ -300,6 +304,13 @@ hir_analysis_lifetime_not_captured = `impl Trait` captures lifetime parameter, b
300304
.label = lifetime captured due to being mentioned in the bounds of the `impl Trait`
301305
.param_label = this lifetime parameter is captured
302306
307+
hir_analysis_lifetimes_or_bounds_mismatch_on_eii =
308+
lifetime parameters or bounds of `{$ident}` do not match the declaration
309+
.label = lifetimes do not match
310+
.generics_label = lifetimes in impl do not match this signature
311+
.where_label = this `where` clause might not match the one in the declaration
312+
.bounds_label = this bound might be missing in the implementation
313+
303314
hir_analysis_lifetimes_or_bounds_mismatch_on_trait =
304315
lifetime parameters or bounds on {$item_kind} `{$ident}` do not match the trait declaration
305316
.label = lifetimes do not match {$item_kind} in trait

0 commit comments

Comments
 (0)