]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/traits/select.rs
move projection mode into parameter environment
[rust.git] / src / librustc / traits / select.rs
index 7366ed45f31bd514f96279377cbd36433dfe1e26..12f9e2f355bb9cd25a88fc5c6fb35a4ff0b2099b 100644 (file)
@@ -324,7 +324,7 @@ pub fn closure_typer(&self) -> &'cx InferCtxt<'cx, 'gcx, 'tcx> {
     }
 
     pub fn projection_mode(&self) -> Reveal {
-        self.infcx.projection_mode()
+        self.param_env().reveal
     }
 
     /// Wraps the inference context's in_snapshot s.t. snapshot handling is only from the selection