Skip to content

Commit 5f49b56

Browse files
committed
Ignore some type aliases and lint more cases
1 parent ad9ab0a commit 5f49b56

5 files changed

+556
-167
lines changed

clippy_lints/src/trait_bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ fn rollup_traits(cx: &LateContext<'_>, bounds: &[GenericBound<'_>], msg: &str) -
439439
}
440440

441441
// Put bounds in source order
442-
let mut comparable_bounds = vec![Default::default(); map.len()];
442+
let mut comparable_bounds = vec![(ComparableTraitRef::default(), Span::default()); map.len()];
443443
for (k, (v, i)) in map {
444444
comparable_bounds[i] = (k, v);
445445
}

0 commit comments

Comments
 (0)