1
Fork 0

rustc_error: make ErrorReported impossible to construct

There are a few places were we have to construct it, though, and a few
places that are more invasive to change. To do this, we create a
constructor with a long obvious name.
This commit is contained in:
mark 2022-01-22 18:49:12 -06:00
parent 461e807801
commit bb8d4307eb
104 changed files with 705 additions and 550 deletions

View file

@ -31,8 +31,7 @@ impl base::ProcMacro for BangProcMacro {
if let Some(s) = e.as_str() {
err.help(&format!("message: {}", s));
}
err.emit();
ErrorGuaranteed
err.emit()
})
}
}
@ -58,8 +57,7 @@ impl base::AttrProcMacro for AttrProcMacro {
if let Some(s) = e.as_str() {
err.help(&format!("message: {}", s));
}
err.emit();
ErrorGuaranteed
err.emit()
})
}
}