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
|
@ -894,7 +894,7 @@ fn foo(&self) -> Self::T { String::new() }
|
|||
// FIXME: we would want to call `resolve_vars_if_possible` on `ty` before suggesting.
|
||||
|
||||
let trait_bounds = bounds.iter().filter_map(|bound| match bound {
|
||||
hir::GenericBound::Trait(ptr) if ptr.modifiers == hir::TraitBoundModifier::None => {
|
||||
hir::GenericBound::Trait(ptr) if ptr.modifiers == hir::TraitBoundModifiers::NONE => {
|
||||
Some(ptr)
|
||||
}
|
||||
_ => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue