diff options
| author | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-02-25 22:22:09 +0100 |
|---|---|---|
| committer | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-02-25 22:22:09 +0100 |
| commit | a3fce72a27ee41077c3752851ff778f886f0a4fa (patch) | |
| tree | fa1d202e92a49e3cb5c01f548c9ff7ee37a2a4db /compiler/rustc_ast_pretty | |
| parent | 8c0b1fcd2914caaf1c3a1071028fb74b70c519e9 (diff) | |
| download | rust-a3fce72a27ee41077c3752851ff778f886f0a4fa.tar.gz rust-a3fce72a27ee41077c3752851ff778f886f0a4fa.zip | |
Add `ast::ExprKind::Dummy`
Diffstat (limited to 'compiler/rustc_ast_pretty')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state/expr.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs index ff154a009ed..0f9fe89402b 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs @@ -898,6 +898,11 @@ impl<'a> State<'a> { self.word("/*ERROR*/"); self.pclose() } + ast::ExprKind::Dummy => { + self.popen(); + self.word("/*DUMMY*/"); + self.pclose(); + } } self.ann.post(self, AnnNode::Expr(expr)); |
