Use a different hir type for patterns in pattern types than we use in match patterns
This commit is contained in:
parent
613bdd4997
commit
f0308938ba
27 changed files with 311 additions and 168 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue