about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-03-31 18:35:39 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-08-05 17:48:05 +0200
commitf4f957d00b5e8f8de0a2818a39cc9ec6a47bc828 (patch)
tree5a2d01b9d829b284d03227870ea12b3b0eafdbaf /src/librustc_codegen_utils
parent7710820d184f36c3ab659dace70f8ee366212169 (diff)
downloadrust-f4f957d00b5e8f8de0a2818a39cc9ec6a47bc828.tar.gz
rust-f4f957d00b5e8f8de0a2818a39cc9ec6a47bc828.zip
Clear the ParamEnv where its information is irrelevant
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names/v0.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_utils/symbol_names/v0.rs b/src/librustc_codegen_utils/symbol_names/v0.rs
index 79ec7e63b21..47601da8b7b 100644
--- a/src/librustc_codegen_utils/symbol_names/v0.rs
+++ b/src/librustc_codegen_utils/symbol_names/v0.rs
@@ -512,7 +512,7 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
         }
         self = ct.ty.print(self)?;
 
-        if let Some(bits) = ct.try_eval_bits(self.tcx, ty::ParamEnv::reveal_all().and(ct.ty)) {
+        if let Some(bits) = ct.try_eval_bits(self.tcx, ty::ParamEnv::reveal_all(), ct.ty) {
             let _ = write!(self.out, "{:x}_", bits);
         } else {
             // NOTE(eddyb) despite having the path, we need to