diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-06 05:50:55 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-06 12:35:41 +0100 |
| commit | 32be124e306e537590cedcb56e6c16db7f9d8ce7 (patch) | |
| tree | f1556b2b11d22a126ad37867267ff2afe6bb9f33 /compiler/rustc_hir_pretty/src | |
| parent | cbd6ec760453b333e86aac106f47fe9132498924 (diff) | |
| download | rust-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.rs | 4 |
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"); |
