diff options
Diffstat (limited to 'compiler/rustc_borrowck/src/region_infer/values.rs')
| -rw-r--r-- | compiler/rustc_borrowck/src/region_infer/values.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_borrowck/src/region_infer/values.rs b/compiler/rustc_borrowck/src/region_infer/values.rs index e567f3a8b0d..75aef8b303b 100644 --- a/compiler/rustc_borrowck/src/region_infer/values.rs +++ b/compiler/rustc_borrowck/src/region_infer/values.rs @@ -544,12 +544,12 @@ fn pretty_print_region_elements(elements: impl IntoIterator<Item = RegionElement return result; - fn push_location_range(str: &mut String, location1: Location, location2: Location) { + fn push_location_range(s: &mut String, location1: Location, location2: Location) { if location1 == location2 { - str.push_str(&format!("{location1:?}")); + s.push_str(&format!("{location1:?}")); } else { assert_eq!(location1.block, location2.block); - str.push_str(&format!( + s.push_str(&format!( "{:?}[{}..={}]", location1.block, location1.statement_index, location2.statement_index )); |
