about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-15 17:14:59 -0400
committerMichael Goulet <michael@errs.io>2024-04-15 17:14:59 -0400
commit05bb3d2683f26d068f2bf7499519ff72fbc2740e (patch)
tree3d49fb3a2e64cd3d0ce4ea6a8fc36a54c9e87e5d /compiler/rustc_middle/src
parent99d0186b1d0547eae913eff04be272c9d348b9b8 (diff)
downloadrust-05bb3d2683f26d068f2bf7499519ff72fbc2740e.tar.gz
rust-05bb3d2683f26d068f2bf7499519ff72fbc2740e.zip
Just use type_dependent_def_id to figure out what the method is for an expr
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index 394515f091f..5ef7a20f460 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -983,9 +983,6 @@ rustc_queries! {
     query diagnostic_only_typeck(key: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
         desc { |tcx| "type-checking `{}`", tcx.def_path_str(key) }
     }
-    query lookup_method_for_diagnostic((def_id, hir_id): (LocalDefId, hir::HirId)) -> Option<DefId> {
-        desc { |tcx| "lookup_method_for_diagnostics `{}`", tcx.def_path_str(def_id) }
-    }
 
     query used_trait_imports(key: LocalDefId) -> &'tcx UnordSet<LocalDefId> {
         desc { |tcx| "finding used_trait_imports `{}`", tcx.def_path_str(key) }