Rollup merge of #62168 - ljedrz:the_culmination_of_hiridification, r=Zoxc
The (almost) culmination of HirIdification It's finally over. This PR removes old `FIXME`s and renames some functions so that the `HirId` variant has the shorter name. All that remains (and rightfully so) is stuff in `resolve`, `save_analysis` and (as far as I can tell) in a few places where we can't replace `NodeId` with `HirId`.
This commit is contained in:
commit
2e86c006f7
83 changed files with 309 additions and 321 deletions
|
|
@ -84,7 +84,7 @@ fn reachable_non_generics_provider(
|
|||
// let it through if it's included statically.
|
||||
match tcx.hir().get(hir_id) {
|
||||
Node::ForeignItem(..) => {
|
||||
let def_id = tcx.hir().local_def_id_from_hir_id(hir_id);
|
||||
let def_id = tcx.hir().local_def_id(hir_id);
|
||||
if tcx.is_statically_included_foreign_item(def_id) {
|
||||
Some(def_id)
|
||||
} else {
|
||||
|
|
@ -104,7 +104,7 @@ fn reachable_non_generics_provider(
|
|||
node: hir::ImplItemKind::Method(..),
|
||||
..
|
||||
}) => {
|
||||
let def_id = tcx.hir().local_def_id_from_hir_id(hir_id);
|
||||
let def_id = tcx.hir().local_def_id(hir_id);
|
||||
let generics = tcx.generics_of(def_id);
|
||||
if !generics.requires_monomorphization(tcx) &&
|
||||
// Functions marked with #[inline] are only ever codegened
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue