We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef1b92 commit 79f4710Copy full SHA for 79f4710
src/librustc_mir/borrow_check/nll/region_infer/values.rs
@@ -376,6 +376,7 @@ impl RegionValues {
376
sep = ", ";
377
};
378
379
+ let mut counter = 0;
380
for element in self.elements_contained_in(r) {
381
match element {
382
RegionElement::Location(l) => {
@@ -405,6 +406,8 @@ impl RegionValues {
405
406
result.push_str(&format!("{:?}", fr));
407
}
408
409
+
410
+ counter += 1;
411
412
413
if let Some((location1, location2)) = open_location {
@@ -414,7 +417,7 @@ impl RegionValues {
414
417
415
418
result.push_str("}");
416
419
- result
420
+ format!("{} elements / {}", counter, result)
421
422
423
fn push_location_range(str: &mut String, location1: Location, location2: Location) {
0 commit comments