trait selection errors should poison the typeck results, too, so that const eval can avoid running at all
This commit is contained in:
parent
b2eba058e6
commit
31e0bf7891
5 changed files with 18 additions and 10 deletions
|
@ -273,6 +273,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
|||
error: &SelectionError<'tcx>,
|
||||
fallback_has_occurred: bool,
|
||||
) {
|
||||
self.set_tainted_by_errors();
|
||||
let tcx = self.tcx;
|
||||
let mut span = obligation.cause.span;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue