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 aa6cc6e commit a21b7b3Copy full SHA for a21b7b3
src/librustc_errors/emitter.rs
@@ -1016,7 +1016,9 @@ impl EmitterWriter {
1016
let loc = if let Some(first_line) = annotated_file.lines.first() {
1017
let col = if let Some(first_annotation) = first_line.annotations.first() {
1018
format!(":{}", first_annotation.start_col + 1)
1019
- } else { "".to_string() };
+ } else {
1020
+ "".to_string()
1021
+ };
1022
format!("{}:{}{}",
1023
annotated_file.file.name,
1024
cm.doctest_offset_line(first_line.line_index),
0 commit comments