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-26 00:13:09 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-08-05 17:48:05 +0200
commit7710820d184f36c3ab659dace70f8ee366212169 (patch)
treee183bbcd73aa058988f851417b0ae57e276ca7f6 /src/librustc_codegen_utils
parentf9e29b279c2045d520d624d958860f6b8c95ab7b (diff)
downloadrust-7710820d184f36c3ab659dace70f8ee366212169.tar.gz
rust-7710820d184f36c3ab659dace70f8ee366212169.zip
Fiddle param env through to `try_eval_bits` in most places
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 cce228ff63b..79ec7e63b21 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, ct.ty) {
+        if let Some(bits) = ct.try_eval_bits(self.tcx, ty::ParamEnv::reveal_all().and(ct.ty)) {
             let _ = write!(self.out, "{:x}_", bits);
         } else {
             // NOTE(eddyb) despite having the path, we need to