Delay bug for negative auto trait rather than ICEing
This commit is contained in:
parent
03eb454523
commit
bbc80a819b
3 changed files with 34 additions and 1 deletions
|
@ -124,7 +124,10 @@ pub(crate) fn check_negative_auto_trait_impl<'tcx>(
|
|||
// be implemented here to handle non-ADT rigid types.
|
||||
Ok(())
|
||||
} else {
|
||||
span_bug!(tcx.def_span(impl_def_id), "incoherent impl of negative auto trait");
|
||||
Err(tcx.dcx().span_delayed_bug(
|
||||
tcx.def_span(impl_def_id),
|
||||
"incoherent impl of negative auto trait",
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue