1
Fork 0

Don't check for recursion in generator witness fields

This commit is contained in:
Michael Goulet 2023-11-08 06:56:06 +00:00
parent dfb9f5df2c
commit 82a2215481
19 changed files with 102 additions and 124 deletions

View file

@ -35,7 +35,8 @@ pub struct QueryStackFrame {
span: Option<Span>,
pub def_id: Option<DefId>,
pub def_kind: Option<DefKind>,
pub ty_adt_id: Option<DefId>,
/// A def-id that is extracted from a `Ty` in a query key
pub ty_def_id: Option<DefId>,
pub dep_kind: DepKind,
/// This hash is used to deterministically pick
/// a query to remove cycles in the parallel compiler.
@ -51,7 +52,7 @@ impl QueryStackFrame {
def_id: Option<DefId>,
def_kind: Option<DefKind>,
dep_kind: DepKind,
ty_adt_id: Option<DefId>,
ty_def_id: Option<DefId>,
_hash: impl FnOnce() -> Hash64,
) -> Self {
Self {
@ -59,7 +60,7 @@ impl QueryStackFrame {
span,
def_id,
def_kind,
ty_adt_id,
ty_def_id,
dep_kind,
#[cfg(parallel_compiler)]
hash: _hash(),