about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-28 18:15:39 +0200
committerGitHub <noreply@github.com>2019-05-28 18:15:39 +0200
commit16ef483b79da2bee891d58f5da97456f71573cc0 (patch)
tree31d2399f817e9906721c8bbed0a03cf40af2b65f /src/librustc_codegen_utils
parentf91a3abade0764714af1ad7cb49e8b1d298cd0b3 (diff)
parentfe19ed8737fb0270b88adab77787940cc37ac6c9 (diff)
downloadrust-16ef483b79da2bee891d58f5da97456f71573cc0.tar.gz
rust-16ef483b79da2bee891d58f5da97456f71573cc0.zip
Rollup merge of #61164 - RalfJung:scalar, r=oli-obk
rename Scalar::Bits to Scalar::Raw and bits field to data

Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor).

r? @oli-obk
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);
             }