Skip to content

Commit f0c5c30

Browse files
committed
Bless test
1 parent 416195e commit f0c5c30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_lint/src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<'tcx> LateLintPass<'tcx> for DropTraitConstraints {
138138
declare_lint! {
139139
pub DUP_TRAIT_BOUNDS,
140140
Deny,
141-
"duplicate trait bounds"
141+
"Duplicate trait bounds are meaningless"
142142
}
143143

144144
declare_lint_pass!(
@@ -163,7 +163,7 @@ impl<'tcx> LateLintPass<'tcx> for DuplicateTraitBounds {
163163
if !set.insert(did) {
164164
let span = polytraitref.span;
165165
cx.struct_span_lint(DUP_TRAIT_BOUNDS, span, |lint| {
166-
let msg = format!("Duplicate trait bound");
166+
let msg = format!("duplicate trait bound");
167167
lint.build(&msg)
168168
.span_help(span, "Remove this duplicate trait bound")
169169
.emit();

src/test/ui/traits/duplicate-trait-bounds.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Duplicate trait bound
1+
error: duplicate trait bound
22
--> $DIR/duplicate-trait-bounds.rs:8:56
33
|
44
LL | DirectedGraph + WithStartNode + WithPredecessors + WithStartNode + WithSuccessors + WithNumNodes

0 commit comments

Comments
 (0)