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 55b5428 commit bb44288Copy full SHA for bb44288
src/librustc_errors/emitter.rs
@@ -1734,10 +1734,8 @@ impl FileWithAnnotatedLines {
1734
1735
// Find overlapping multiline annotations, put them at different depths
1736
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, ml.line_end));
1737
- for item in multiline_annotations.clone() {
1738
- let ann = item.1;
1739
- for item in multiline_annotations.iter_mut() {
1740
- let ref mut a = item.1;
+ for (_, ann) in multiline_annotations.clone() {
+ for (_, a) in multiline_annotations.iter_mut() {
1741
// Move all other multiline annotations overlapping with this one
1742
// one level to the right.
1743
if !(ann.same_span(a)) &&
0 commit comments