1
Fork 0

trait selection errors should poison the typeck results, too, so that const eval can avoid running at all

This commit is contained in:
Oli Scherer 2022-04-13 14:37:36 +00:00
parent b2eba058e6
commit 31e0bf7891
5 changed files with 18 additions and 10 deletions

View file

@ -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;