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 f2023ac commit df203a2Copy full SHA for df203a2
src/librustc_errors/emitter.rs
@@ -1026,7 +1026,8 @@ impl EmitterWriter {
1026
children.iter()
1027
.map(|sub| self.get_multispan_max_line_num(&sub.span))
1028
.max()
1029
- .unwrap_or(primary)
+ .unwrap_or(0)
1030
+ .max(primary)
1031
}
1032
1033
/// Adds a left margin to every line but the first, given a padding length and the label being
0 commit comments