diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-07 10:24:16 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-03 08:18:30 +0000 |
| commit | f0308938ba39bc3377f22f7479654ba32e9c233f (patch) | |
| tree | b9205aed82163cb3aa06362d0d1ee5577cdd210c /compiler/rustc_driver_impl/src | |
| parent | 613bdd49978298648ed05ace086bd1ecad54b44a (diff) | |
| download | rust-f0308938ba39bc3377f22f7479654ba32e9c233f.tar.gz rust-f0308938ba39bc3377f22f7479654ba32e9c233f.zip | |
Use a different hir type for patterns in pattern types than we use in match patterns
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index 9ace486fa56..576b1c76823 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -101,6 +101,10 @@ impl<'tcx> pprust_hir::PpAnn for HirIdentifiedAnn<'tcx> { s.s.space(); s.synth_comment(format!("pat hir_id: {}", pat.hir_id)); } + pprust_hir::AnnNode::TyPat(pat) => { + s.s.space(); + s.synth_comment(format!("ty pat hir_id: {}", pat.hir_id)); + } pprust_hir::AnnNode::Arm(arm) => { s.s.space(); s.synth_comment(format!("arm hir_id: {}", arm.hir_id)); |
