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-22 18:30:35 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-08-05 17:48:04 +0200
commit9b87d22ea83a1b5955d5355f91125456c4dc4bab (patch)
tree5d7f00e640c68d1f87e12c7f7c0a1386e57d76e9 /src/librustc_codegen_utils
parent437f017e2ed2e8c60b6f4af9dc71559ca87fd645 (diff)
downloadrust-9b87d22ea83a1b5955d5355f91125456c4dc4bab.tar.gz
rust-9b87d22ea83a1b5955d5355f91125456c4dc4bab.zip
Don't abort on unevaluated constants without at least tryting to eval them
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 8a54fb6bbc4..cce228ff63b 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.assert_bits(self.tcx, ty::ParamEnv::empty().and(ct.ty)) {
+        if let Some(bits) = ct.try_eval_bits(self.tcx, ct.ty) {
             let _ = write!(self.out, "{:x}_", bits);
         } else {
             // NOTE(eddyb) despite having the path, we need to