File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ fn emit_lint(
56
56
poly_trait : & rustc_hir:: PolyTraitRef < ' _ > ,
57
57
opaque_ty : & rustc_hir:: OpaqueTy < ' _ > ,
58
58
index : usize ,
59
+ // The bindings that were implied
59
60
implied_bindings : & [ rustc_hir:: TypeBinding < ' _ > ] ,
61
+ // The original bindings that `implied_bindings` are implied from
60
62
implied_by_bindings : & [ rustc_hir:: TypeBinding < ' _ > ] ,
61
63
implied_by_args : & [ GenericArg < ' _ > ] ,
62
64
implied_by_span : Span ,
@@ -69,7 +71,7 @@ fn emit_lint(
69
71
poly_trait. span ,
70
72
& format ! ( "this bound is already specified as the supertrait of `{implied_by}`" ) ,
71
73
|diag| {
72
- // If we suggest removing a bound, we may also need extend the span
74
+ // If we suggest removing a bound, we may also need to extend the span
73
75
// to include the `+` token that is ahead or behind,
74
76
// so we don't end up with something like `impl + B` or `impl A + `
75
77
You can’t perform that action at this time.
0 commit comments