Skip to content

Commit 9b75f2d

Browse files
committed
Allow ~const on super traits
1 parent 7d0a55b commit 9b75f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
12721272
self.visit_vis(&item.vis);
12731273
self.visit_ident(item.ident);
12741274
self.visit_generics(generics);
1275-
self.with_banned_tilde_const(|this| {
1275+
self.with_tilde_const_allowed(|this| {
12761276
walk_list!(this, visit_param_bound, bounds, BoundKind::SuperTraits)
12771277
});
12781278
walk_list!(self, visit_assoc_item, items, AssocCtxt::Trait);

0 commit comments

Comments
 (0)