mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Remove a call-site to primary_body_of
as it is only interested in the body id
This commit is contained in:
parent
d0eb9c86f1
commit
7786ee3c92
@ -106,7 +106,7 @@ fn has_typeck_results(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
|
||||
}
|
||||
|
||||
if let Some(def_id) = def_id.as_local() {
|
||||
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()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user