about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-15 18:56:44 -0400
committerMichael Goulet <michael@errs.io>2024-04-17 22:18:27 -0400
commit6abf1aae2438520780ef463db4c0cbdccc7ca4eb (patch)
tree9b88e70834d0911b3df5bc1fe972fb499a010b18 /compiler/rustc_lint/src/context.rs
parent9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9 (diff)
downloadrust-6abf1aae2438520780ef463db4c0cbdccc7ca4eb.tar.gz
rust-6abf1aae2438520780ef463db4c0cbdccc7ca4eb.zip
has_typeck_results doesnt need to be a query
Diffstat (limited to 'compiler/rustc_lint/src/context.rs')
-rw-r--r--compiler/rustc_lint/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs
index 64ef30039a8..d1dcfc524b5 100644
--- a/compiler/rustc_lint/src/context.rs
+++ b/compiler/rustc_lint/src/context.rs
@@ -741,7 +741,7 @@ impl<'tcx> LateContext<'tcx> {
                 .filter(|typeck_results| typeck_results.hir_owner == id.owner)
                 .or_else(|| {
                     self.tcx
-                        .has_typeck_results(id.owner.to_def_id())
+                        .has_typeck_results(id.owner.def_id)
                         .then(|| self.tcx.typeck(id.owner.def_id))
                 })
                 .and_then(|typeck_results| typeck_results.type_dependent_def(id))