Rename HIR TypeBinding
to AssocItemConstraint
and related cleanup
This commit is contained in:
parent
0a59f11362
commit
34c56c45cf
108 changed files with 878 additions and 818 deletions
|
@ -508,7 +508,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
let ast::AngleBracketedArg::Constraint(constraint) = param else {
|
||||
continue;
|
||||
};
|
||||
let ast::AssocConstraintKind::Bound { bounds } = &constraint.kind else {
|
||||
let ast::AssocItemConstraintKind::Bound { bounds } = &constraint.kind else {
|
||||
continue;
|
||||
};
|
||||
for bound in bounds {
|
||||
|
@ -3390,11 +3390,11 @@ fn mk_where_bound_predicate(
|
|||
};
|
||||
let mut segments = ThinVec::from(preceding);
|
||||
|
||||
let added_constraint = ast::AngleBracketedArg::Constraint(ast::AssocConstraint {
|
||||
let added_constraint = ast::AngleBracketedArg::Constraint(ast::AssocItemConstraint {
|
||||
id: DUMMY_NODE_ID,
|
||||
ident: last.ident,
|
||||
gen_args: None,
|
||||
kind: ast::AssocConstraintKind::Equality {
|
||||
kind: ast::AssocItemConstraintKind::Equality {
|
||||
term: ast::Term::Ty(ast::ptr::P(ast::Ty {
|
||||
kind: ast::TyKind::Path(None, poly_trait_ref.trait_ref.path.clone()),
|
||||
id: DUMMY_NODE_ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue