about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-05-26 14:13:12 +0200
committerRalf Jung <post@ralfj.de>2019-05-26 14:13:12 +0200
commitaad13a176a0c9c96380fecf574f424e555fe880b (patch)
tree2decdde3adb5bc04e400eb43358aa624be0c2e65 /src/librustc_codegen_utils
parent3defb3f18fdd6d2bd74b3de7a2d932133c99303b (diff)
centralize Scalar size sanity checks and also do them in release builds
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs
index 86407162907..bf81b7f0da5 100644
--- a/src/librustc_codegen_utils/symbol_names.rs
+++ b/src/librustc_codegen_utils/symbol_names.rs
@@ -443,7 +443,7 @@ impl Printer<'tcx, 'tcx> for SymbolPrinter<'_, 'tcx> {
         ct: &'tcx ty::Const<'tcx>,
     ) -> Result<Self::Const, Self::Error> {
         // only print integers
-        if let ConstValue::Scalar(Scalar::Bits { .. }) = ct.val {
+        if let ConstValue::Scalar(Scalar::Raw { .. }) = ct.val {
             if ct.ty.is_integral() {
                 return self.pretty_print_const(ct);
             }