about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorscalexm <martin.alex32@hotmail.fr>2018-10-08 15:20:16 +0200
committerscalexm <martin.alex32@hotmail.fr>2018-10-08 15:26:22 +0200
commit282559cff607c19eb0a74e1ddf90df781cd77849 (patch)
tree9fdbe42c4c3a8871302554cbbe508893bf6379e7 /src
parent96ff8273951269565fb047aa00e42ab3b8038968 (diff)
downloadrust-282559cff607c19eb0a74e1ddf90df781cd77849.tar.gz
rust-282559cff607c19eb0a74e1ddf90df781cd77849.zip
Compute flags for `ty::UnnormalizedProjection`
Diffstat (limited to 'src')
-rw-r--r--src/librustc/ty/flags.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc/ty/flags.rs b/src/librustc/ty/flags.rs
index c3d41873009..10a90dfc8a8 100644
--- a/src/librustc/ty/flags.rs
+++ b/src/librustc/ty/flags.rs
@@ -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);