Represent TraitBoundModifiers as distinct parts in HIR
This commit is contained in:
parent
86d69c705a
commit
febb3f7c88
18 changed files with 116 additions and 117 deletions
|
@ -193,7 +193,7 @@ fn suggest_changing_unsized_bound(
|
|||
.enumerate()
|
||||
.filter(|(_, bound)| {
|
||||
if let hir::GenericBound::Trait(poly) = bound
|
||||
&& poly.modifiers == hir::TraitBoundModifier::Maybe
|
||||
&& let hir::BoundPolarity::Maybe(_) = poly.modifiers.polarity
|
||||
&& poly.trait_ref.trait_def_id() == def_id
|
||||
{
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue