We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f91da commit f9cf338Copy full SHA for f9cf338
compiler/rustc_lint/src/redundant_sizedness_bounds.rs
@@ -125,6 +125,8 @@ fn check_redundant_sizedness_bounds(
125
let redundant_sized_params: DefIdMap<_> = type_param_bounds(generics)
126
.filter(|bound| {
127
bound.trait_bound.trait_ref.trait_def_id() == Some(redundant_bound)
128
+ // Here we wish to compare the variant of the enum `BoundPolarity` whilst
129
+ // disregarding the contents of the variant.
130
&& std::mem::discriminant(&bound.trait_bound.modifiers.polarity)
131
== std::mem::discriminant(&redundant_bound_polarity)
132
})
0 commit comments