diff options
| author | Michael Goulet <michael@errs.io> | 2024-12-13 16:18:37 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-13 16:36:38 +0000 |
| commit | efb66e7e385da37015925b23c199efdf3b246d35 (patch) | |
| tree | 764c008f6529ab8d7d1f33dba7ce31046ac14d3e /compiler/rustc_query_system | |
| parent | 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 (diff) | |
| download | rust-efb66e7e385da37015925b23c199efdf3b246d35.tar.gz rust-efb66e7e385da37015925b23c199efdf3b246d35.zip | |
Rename ty_def_id so people will stop using it by accident
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/query/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/mod.rs b/compiler/rustc_query_system/src/query/mod.rs index b81386f06ec..82c51193a19 100644 --- a/compiler/rustc_query_system/src/query/mod.rs +++ b/compiler/rustc_query_system/src/query/mod.rs @@ -33,7 +33,7 @@ pub struct QueryStackFrame { pub def_id: Option<DefId>, pub def_kind: Option<DefKind>, /// A def-id that is extracted from a `Ty` in a query key - pub ty_def_id: Option<DefId>, + pub def_id_for_ty_in_cycle: Option<DefId>, pub dep_kind: DepKind, /// This hash is used to deterministically pick /// a query to remove cycles in the parallel compiler. @@ -48,10 +48,10 @@ impl QueryStackFrame { def_id: Option<DefId>, def_kind: Option<DefKind>, dep_kind: DepKind, - ty_def_id: Option<DefId>, + def_id_for_ty_in_cycle: Option<DefId>, hash: impl FnOnce() -> Hash64, ) -> Self { - Self { description, span, def_id, def_kind, ty_def_id, dep_kind, hash: hash() } + Self { description, span, def_id, def_kind, def_id_for_ty_in_cycle, dep_kind, hash: hash() } } // FIXME(eddyb) Get more valid `Span`s on queries. |
