Skip to content

Commit c9b6f83

Browse files
Okay actually check only alias TYPES
1 parent 84e729a commit c9b6f83

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+3
-3
lines changed

compiler/rustc_trait_selection/src/traits/wf.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
493493
self.out.extend(obligations);
494494
}
495495

496-
self.compute_projection_args(data.args);
496+
data.args.visit_with(self);
497497
}
498498

499499
fn compute_projection_args(&mut self, args: GenericArgsRef<'tcx>) {
@@ -698,8 +698,8 @@ impl<'a, 'tcx> TypeVisitor<TyCtxt<'tcx>> for WfPredicates<'a, 'tcx> {
698698
}
699699

700700
ty::Alias(ty::Projection | ty::Opaque | ty::Weak, data) => {
701-
self.compute_alias(data);
702-
return; // Subtree handled by compute_projection.
701+
let obligations = self.nominal_obligations(data.def_id, data.args);
702+
self.out.extend(obligations);
703703
}
704704
ty::Alias(ty::Inherent, data) => {
705705
self.compute_inherent_projection(data);

0 commit comments

Comments
 (0)