Skip to content

Commit

Permalink
Update test suite to nightly-2024-06-01
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 1, 2024
1 parent b992916 commit f7b2e9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/common/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use rustc_ast::ast::AngleBracketedArg;
use rustc_ast::ast::AngleBracketedArgs;
use rustc_ast::ast::AnonConst;
use rustc_ast::ast::Arm;
use rustc_ast::ast::AssocConstraint;
use rustc_ast::ast::AssocConstraintKind;
use rustc_ast::ast::AssocItemConstraint;
use rustc_ast::ast::AssocItemConstraintKind;
use rustc_ast::ast::AssocItemKind;
use rustc_ast::ast::AttrArgs;
use rustc_ast::ast::AttrArgsEq;
Expand Down Expand Up @@ -464,7 +464,7 @@ macro_rules! spanless_eq_enum {
spanless_eq_struct!(AngleBracketedArgs; span args);
spanless_eq_struct!(AnonConst; id value);
spanless_eq_struct!(Arm; attrs pat guard body span id is_placeholder);
spanless_eq_struct!(AssocConstraint; id ident gen_args kind span);
spanless_eq_struct!(AssocItemConstraint; id ident gen_args kind span);
spanless_eq_struct!(AttrItem; path args tokens);
spanless_eq_struct!(AttrTokenStream; 0);
spanless_eq_struct!(Attribute; kind id style span);
Expand Down Expand Up @@ -539,7 +539,7 @@ spanless_eq_struct!(WhereClause; has_where_token predicates span);
spanless_eq_struct!(WhereEqPredicate; span lhs_ty rhs_ty);
spanless_eq_struct!(WhereRegionPredicate; span lifetime bounds);
spanless_eq_enum!(AngleBracketedArg; Arg(0) Constraint(0));
spanless_eq_enum!(AssocConstraintKind; Equality(term) Bound(bounds));
spanless_eq_enum!(AssocItemConstraintKind; Equality(term) Bound(bounds));
spanless_eq_enum!(AssocItemKind; Const(0) Fn(0) Type(0) MacCall(0) Delegation(0) DelegationMac(0));
spanless_eq_enum!(AttrArgs; Empty Delimited(0) Eq(0 1));
spanless_eq_enum!(AttrArgsEq; Ast(0) Hir(0));
Expand Down
4 changes: 3 additions & 1 deletion tests/test_round_trip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ fn normalize(krate: &mut Crate) {
for arg in &mut e.args {
match arg {
AngleBracketedArg::Arg(arg) => self.visit_generic_arg(arg),
AngleBracketedArg::Constraint(constraint) => self.visit_constraint(constraint),
AngleBracketedArg::Constraint(constraint) => {
self.visit_assoc_item_constraint(constraint);
}
}
}
}
Expand Down

0 comments on commit f7b2e9d

Please sign in to comment.