File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ impl<'tcx> LateLintPass<'tcx> for DropTraitConstraints {
138
138
declare_lint ! {
139
139
pub DUP_TRAIT_BOUNDS ,
140
140
Deny ,
141
- "duplicate trait bounds"
141
+ "Duplicate trait bounds are meaningless "
142
142
}
143
143
144
144
declare_lint_pass ! (
@@ -163,7 +163,7 @@ impl<'tcx> LateLintPass<'tcx> for DuplicateTraitBounds {
163
163
if !set. insert ( did) {
164
164
let span = polytraitref. span ;
165
165
cx. struct_span_lint ( DUP_TRAIT_BOUNDS , span, |lint| {
166
- let msg = format ! ( "Duplicate trait bound" ) ;
166
+ let msg = format ! ( "duplicate trait bound" ) ;
167
167
lint. build ( & msg)
168
168
. span_help ( span, "Remove this duplicate trait bound" )
169
169
. emit ( ) ;
Original file line number Diff line number Diff line change 1
- error: Duplicate trait bound
1
+ error: duplicate trait bound
2
2
--> $DIR/duplicate-trait-bounds.rs:8:56
3
3
|
4
4
LL | DirectedGraph + WithStartNode + WithPredecessors + WithStartNode + WithSuccessors + WithNumNodes
You can’t perform that action at this time.
0 commit comments