summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-01 19:31:14 +0000
committerbors <bors@rust-lang.org>2022-09-01 19:31:14 +0000
commit2e35f954ada0f0c777844dc4fa66684efe90a035 (patch)
tree0f32b8fa31fd411df68e3ae880872823dce5d13a /compiler/rustc_resolve/src
parent9af618b62e91b45d61f41548f24ba60b834e362b (diff)
parent60a052f4d308b4b7e3b6132fd4bb2a48082b066c (diff)
downloadrust-2e35f954ada0f0c777844dc4fa66684efe90a035.tar.gz
rust-2e35f954ada0f0c777844dc4fa66684efe90a035.zip
Auto merge of #98960 - cjgillot:entry-kind, r=estebank
Remove EntryKind from metadata.

This PR continues the refactor of metadata emission to be more systematic, iterating on definitions and filtering based on each definition's `DefKind`. This allows to remove the large `EntryKind` enum, replaced by linear tables in metadata.
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/build_reduced_graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs
index cd0b2443da5..51e8c24b9c2 100644
--- a/compiler/rustc_resolve/src/build_reduced_graph.rs
+++ b/compiler/rustc_resolve/src/build_reduced_graph.rs
@@ -1029,7 +1029,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
                 self.insert_field_names(def_id, field_names);
             }
             Res::Def(DefKind::AssocFn, def_id) => {
-                if cstore.fn_has_self_parameter_untracked(def_id) {
+                if cstore.fn_has_self_parameter_untracked(def_id, self.r.session) {
                     self.r.has_self.insert(def_id);
                 }
             }