Skip to content

Commit

Permalink
Compute flags for ty::UnnormalizedProjection
Browse files Browse the repository at this point in the history
  • Loading branch information
scalexm committed Oct 8, 2018
1 parent 96ff827 commit 282559c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc/ty/flags.rs
Expand Up @@ -148,7 +148,10 @@ impl FlagComputation {
self.add_projection_ty(data);
}

&ty::UnnormalizedProjection(..) => bug!("only used with chalk-engine"),
&ty::UnnormalizedProjection(ref data) => {
self.add_flags(TypeFlags::HAS_PROJECTION);
self.add_projection_ty(data);
},

&ty::Opaque(_, substs) => {
self.add_flags(TypeFlags::HAS_PROJECTION);
Expand Down

0 comments on commit 282559c

Please sign in to comment.