Skip to content

Commit 882ae15

Browse files
committed
Work around a false err.emit(); type error in rust-analyzer
1 parent 25396cf commit 882ae15

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

compiler/rustc_interface/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ internal compiler error: query cycle handler thread panicked, aborting process";
300300
diag.help(
301301
"try lowering `-Z threads` or checking the operating system's resource limits",
302302
);
303-
diag.emit();
303+
diag.emit()
304304
})
305305
})
306306
})

compiler/rustc_parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub fn new_parser_from_file<'a>(
132132
if let Some(sp) = sp {
133133
err.span(sp);
134134
}
135-
err.emit();
135+
err.emit()
136136
});
137137
new_parser_from_source_file(psess, source_file, strip_tokens)
138138
}

compiler/rustc_session/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ pub fn build_target_config(
16151615
let mut err =
16161616
early_dcx.early_struct_fatal(format!("error loading target specification: {e}"));
16171617
err.help("run `rustc --print target-list` for a list of built-in targets");
1618-
err.emit();
1618+
err.emit()
16191619
}
16201620
}
16211621
}

0 commit comments

Comments
 (0)