diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-14 04:09:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-14 04:09:36 +0100 |
| commit | c55a97ed849a0579e7bc71b5ba8b96ce74128656 (patch) | |
| tree | 215066979eb0426d43ebfb574c65c389125b0296 /compiler/rustc_query_impl/src | |
| parent | 2fc9ce70804bf610fd9d59410c0a367aba35eba2 (diff) | |
| parent | efb66e7e385da37015925b23c199efdf3b246d35 (diff) | |
| download | rust-c55a97ed849a0579e7bc71b5ba8b96ce74128656.tar.gz rust-c55a97ed849a0579e7bc71b5ba8b96ce74128656.zip | |
Rollup merge of #134265 - compiler-errors:ty_def_id, r=oli-obk
Rename `ty_def_id` so people will stop using it by accident This function is just for cycle detection, but people keep using it because they think it's the right way of getting the def id from a `Ty` (and I can't blame them necessarily).
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index f72f656b2f8..1b12af62ea5 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -349,9 +349,9 @@ pub(crate) fn create_query_frame< hasher.finish::<Hash64>() }) }; - let ty_def_id = key.ty_def_id(); + let def_id_for_ty_in_cycle = key.def_id_for_ty_in_cycle(); - QueryStackFrame::new(description, span, def_id, def_kind, kind, ty_def_id, hash) + QueryStackFrame::new(description, span, def_id, def_kind, kind, def_id_for_ty_in_cycle, hash) } pub(crate) fn encode_query_results<'a, 'tcx, Q>( |
