about summary refs log tree commit diff
path: root/compiler/rustc_hir_pretty/src
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2021-04-06 05:50:55 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2021-04-06 12:35:41 +0100
commit32be124e306e537590cedcb56e6c16db7f9d8ce7 (patch)
treef1556b2b11d22a126ad37867267ff2afe6bb9f33 /compiler/rustc_hir_pretty/src
parentcbd6ec760453b333e86aac106f47fe9132498924 (diff)
downloadrust-32be124e306e537590cedcb56e6c16db7f9d8ce7.tar.gz
rust-32be124e306e537590cedcb56e6c16db7f9d8ce7.zip
Use AnonConst for asm! constants
Diffstat (limited to 'compiler/rustc_hir_pretty/src')
-rw-r--r--compiler/rustc_hir_pretty/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs
index 2d499e194e1..5820e7a2612 100644
--- a/compiler/rustc_hir_pretty/src/lib.rs
+++ b/compiler/rustc_hir_pretty/src/lib.rs
@@ -1570,10 +1570,10 @@ impl<'a> State<'a> {
                                 None => s.word("_"),
                             }
                         }
-                        hir::InlineAsmOperand::Const { expr } => {
+                        hir::InlineAsmOperand::Const { anon_const } => {
                             s.word("const");
                             s.space();
-                            s.print_expr(expr);
+                            s.print_anon_const(anon_const);
                         }
                         hir::InlineAsmOperand::Sym { expr } => {
                             s.word("sym");