File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -771,7 +771,7 @@ define_print! {
771
771
define_print ! {
772
772
( ) ty:: RegionKind , ( self , f, cx) {
773
773
display {
774
- if cx. is_verbose || get_highlight_region_for_regionvid ( ) . is_some ( ) {
774
+ if cx. is_verbose {
775
775
return self . print_debug( f, cx) ;
776
776
}
777
777
@@ -806,11 +806,16 @@ define_print! {
806
806
) ,
807
807
}
808
808
}
809
- ty:: ReVar ( region_vid) if cx. identify_regions => {
810
- write!( f, "'{}rv" , region_vid. index( ) )
809
+ ty:: ReVar ( region_vid) => {
810
+ if get_highlight_region_for_regionvid( ) . is_some( ) {
811
+ write!( f, "{:?}" , region_vid)
812
+ } else if cx. identify_regions {
813
+ write!( f, "'{}rv" , region_vid. index( ) )
814
+ } else {
815
+ Ok ( ( ) )
816
+ }
811
817
}
812
818
ty:: ReScope ( _) |
813
- ty:: ReVar ( _) |
814
819
ty:: ReErased => Ok ( ( ) ) ,
815
820
ty:: ReStatic => write!( f, "'static" ) ,
816
821
ty:: ReEmpty => write!( f, "'<empty>" ) ,
You can’t perform that action at this time.
0 commit comments