Refactor AST trait bound modifiers
This commit is contained in:
parent
bf9229a2e3
commit
5e4f12b41a
16 changed files with 195 additions and 201 deletions
|
@ -520,7 +520,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
continue;
|
||||
};
|
||||
for bound in bounds {
|
||||
let ast::GenericBound::Trait(trait_ref, ast::TraitBoundModifier::None) = bound
|
||||
let ast::GenericBound::Trait(trait_ref, ast::TraitBoundModifiers::NONE) = bound
|
||||
else {
|
||||
continue;
|
||||
};
|
||||
|
@ -1242,7 +1242,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
}
|
||||
if let (
|
||||
[ast::PathSegment { args: None, .. }],
|
||||
[ast::GenericBound::Trait(poly_trait_ref, ast::TraitBoundModifier::None)],
|
||||
[ast::GenericBound::Trait(poly_trait_ref, ast::TraitBoundModifiers::NONE)],
|
||||
) = (&type_param_path.segments[..], &bounds[..])
|
||||
{
|
||||
if let [ast::PathSegment { ident, args: None, .. }] =
|
||||
|
@ -3276,7 +3276,7 @@ fn mk_where_bound_predicate(
|
|||
},
|
||||
span: DUMMY_SP,
|
||||
},
|
||||
ast::TraitBoundModifier::None,
|
||||
ast::TraitBoundModifiers::NONE,
|
||||
)],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue