rust/compiler/rustc_mir_build/src
Michael Goulet 5ce6311f34
Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot
Rename `hir::Map::{get_,find_}parent_node` to `hir::Map::{,opt_}parent_id`, and add `hir::Map::{get,find}_parent`

The `hir::Map::get_parent_node` function doesn't return a `Node`, and I think that's quite confusing. Let's rename it to something that sounds more like something that gets the parent hir id => `hir::Map::parent_id`. Same with `find_parent_node` => `opt_parent_id`.

Also, combine `hir.get(hir.parent_id(hir_id))` and similar `hir.find(hir.parent_id(hir_id))` function into new functions that actually retrieve the parent node in one call. This last commit is the only one that might need to be looked at closely.
2023-01-04 20:36:28 -08:00
..
build Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholk 2022-12-24 00:31:41 +01:00
thir rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
check_unsafety.rs Don't trim path for unsafe_op_in_unsafe_fn lints 2023-01-03 00:28:54 +01:00
errors.rs Remove (eager) 2022-12-17 19:20:44 +01:00
lib.rs Migrate "function cannot return without recursing" diagnostic 2022-12-17 19:08:24 +01:00
lints.rs Migrate "unsafe_op_in_unsafe_fn" lints 2022-12-17 19:08:24 +01:00