diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-08 06:56:06 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-01-08 20:30:21 +0000 |
| commit | 82a22154815b70e5701064bef59d3334f5bc1cf7 (patch) | |
| tree | 40d6223ac17b8293ea29e1b2266817f56c56d75c /compiler/rustc_query_system/src/query/mod.rs | |
| parent | dfb9f5df2c9f3c60f2541b3804cb6be1b5c66e63 (diff) | |
| download | rust-82a22154815b70e5701064bef59d3334f5bc1cf7.tar.gz rust-82a22154815b70e5701064bef59d3334f5bc1cf7.zip | |
Don't check for recursion in generator witness fields
Diffstat (limited to 'compiler/rustc_query_system/src/query/mod.rs')
| -rw-r--r-- | compiler/rustc_query_system/src/query/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/mod.rs b/compiler/rustc_query_system/src/query/mod.rs index ce6a6d6cb1b..9ff04c4e910 100644 --- a/compiler/rustc_query_system/src/query/mod.rs +++ b/compiler/rustc_query_system/src/query/mod.rs @@ -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(), |
