1
Fork 0

compiler: Inform the solver of concurrency

Parallel compilation of a program can cause unexpected event sequencing.
Inform the solver when this is true so it can skip invalid asserts, then
assert replaced solutions are equal if Some
This commit is contained in:
Jubilee Young 2024-09-07 18:29:08 -07:00
parent d7522d8726
commit d243c8fbc4
6 changed files with 72 additions and 4 deletions

View file

@ -181,6 +181,10 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
}
}
fn evaluation_is_concurrent(&self) -> bool {
self.sess.threads() > 1
}
fn expand_abstract_consts<T: TypeFoldable<TyCtxt<'tcx>>>(self, t: T) -> T {
self.expand_abstract_consts(t)
}