We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
primary_body_of
1 parent d0eb9c8 commit 7786ee3Copy full SHA for 7786ee3
compiler/rustc_hir_typeck/src/lib.rs
@@ -106,7 +106,7 @@ fn has_typeck_results(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
106
}
107
108
if let Some(def_id) = def_id.as_local() {
109
- primary_body_of(tcx.hir_node_by_def_id(def_id)).is_some()
+ tcx.hir_node_by_def_id(def_id).body_id().is_some()
110
} else {
111
false
112
0 commit comments