Skip to content

Commit 61e8869

Browse files
committed
Proposed format
1 parent bcefc2e commit 61e8869

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_borrowck/src/region_infer/graphviz.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ fn render_region_vid<'tcx>(
4545
NllRegionVariableOrigin::FreeRegion => "".to_string(),
4646
NllRegionVariableOrigin::Placeholder(p) => match p.bound.kind {
4747
ty::BoundRegionKind::Named(def_id) => {
48-
format!("(p for {})", tcx.item_name(def_id))
48+
format!(" (for<{}>)", tcx.item_name(def_id))
4949
}
50-
ty::BoundRegionKind::ClosureEnv | ty::BoundRegionKind::Anon => "(p)".to_string(),
50+
ty::BoundRegionKind::ClosureEnv | ty::BoundRegionKind::Anon => " (for<'_>)".to_string(),
5151
ty::BoundRegionKind::NamedAnon(_) => {
5252
bug!("only used for pretty printing")
5353
}
5454
},
55-
NllRegionVariableOrigin::Existential { .. } => "(ex)".to_string(),
55+
NllRegionVariableOrigin::Existential { .. } => " (ex<'?>)".to_string(),
5656
};
5757

5858
format!("{:?}{universe_str}{external_name_str}{extra_info}", rvid)

0 commit comments

Comments
 (0)