Skip to content

Commit 0b346be

Browse files
committed
rename var
1 parent 486fb44 commit 0b346be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_lint/src/traits.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ impl<'tcx> LateLintPass<'tcx> for DuplicateTraitBounds {
161161
// If inserting the trait bound into the set returns `false`,
162162
// there is a duplicate.
163163
if !set.insert(did) {
164-
let span = polytraitref.span;
165-
cx.struct_span_lint(DUP_TRAIT_BOUNDS, span, |lint| {
164+
let span_of_dup = polytraitref.span;
165+
cx.struct_span_lint(DUP_TRAIT_BOUNDS, span_of_dup, |lint| {
166166
let msg = format!("duplicate trait bound");
167167
lint.build(&msg)
168-
.span_help(span, "remove the duplicate trait bound")
168+
.span_help(span_of_dup, "Remove this duplicate trait bound")
169169
.emit();
170170
});
171171
};

0 commit comments

Comments
 (0)