]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_pretty/src/pprust/state.rs
Use AnonConst for asm! constants
[rust.git] / compiler / rustc_ast_pretty / src / pprust / state.rs
index 627c0584b6114c7af1fd81fd628533b2e7b314c4..789d2c296e291c3d905ce9ed3bf9bd5fa1d60caf 100644 (file)
@@ -2149,10 +2149,10 @@ enum AsmArg<'a> {
                                     None => s.word("_"),
                                 }
                             }
-                            InlineAsmOperand::Const { expr } => {
+                            InlineAsmOperand::Const { anon_const } => {
                                 s.word("const");
                                 s.space();
-                                s.print_expr(expr);
+                                s.print_expr(&anon_const.value);
                             }
                             InlineAsmOperand::Sym { expr } => {
                                 s.word("sym");