diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-11-23 14:51:24 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-11-28 00:11:12 -0800 |
| commit | 6f64432a3933475321d0083b1876d07b2f06cd7c (patch) | |
| tree | 12467cf3e8a0e78243ea065212d8146244d1f16c /compiler/rustc_errors/src | |
| parent | ab04080b56448c4bcd7e5b79215a1097e1a9b217 (diff) | |
| download | rust-6f64432a3933475321d0083b1876d07b2f06cd7c.tar.gz rust-6f64432a3933475321d0083b1876d07b2f06cd7c.zip | |
Tweak output
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index d22f3ca4214..1fabe15ff83 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -2282,7 +2282,7 @@ impl FileWithAnnotatedLines { } // Find overlapping multiline annotations, put them at different depths - multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, ml.line_end)); + multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, usize::MAX - ml.line_end)); for (_, ann) in multiline_annotations.clone() { for (_, a) in multiline_annotations.iter_mut() { // Move all other multiline annotations overlapping with this one |
