Only check locally for reported errors
This commit is contained in:
parent
af3d1004c7
commit
a183989e88
5 changed files with 41 additions and 6 deletions
|
@ -793,7 +793,7 @@ impl<'cx, 'tcx> Resolver<'cx, 'tcx> {
|
|||
}
|
||||
|
||||
fn report_error(&self, p: impl Into<ty::GenericArg<'tcx>>) -> ErrorGuaranteed {
|
||||
if let Some(guar) = self.fcx.dcx().has_errors() {
|
||||
if let Some(guar) = self.fcx.tainted_by_errors() {
|
||||
guar
|
||||
} else {
|
||||
self.fcx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue