rustc_errors: let DiagnosticBuilder::emit
return a "guarantee of emission".
This commit is contained in:
parent
0b9d70cf6d
commit
b7e95dee65
83 changed files with 842 additions and 471 deletions
|
@ -219,7 +219,9 @@ impl<'tcx> CheckConstVisitor<'tcx> {
|
|||
required_gates.iter().copied().filter(|&g| !features.enabled(g)).collect();
|
||||
|
||||
match missing_gates.as_slice() {
|
||||
[] => struct_span_err!(tcx.sess, span, E0744, "{}", msg).emit(),
|
||||
[] => {
|
||||
struct_span_err!(tcx.sess, span, E0744, "{}", msg).emit();
|
||||
}
|
||||
|
||||
[missing_primary, ref missing_secondary @ ..] => {
|
||||
let mut err = feature_err(&tcx.sess.parse_sess, *missing_primary, span, &msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue