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.
2 parents 4ea2be7 + df203a2 commit d5a0765Copy full SHA for d5a0765
1 file changed
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