rust/compiler/rustc_borrowck/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
..
constraints Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
diagnostics Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
region_infer Hackily fix an opaque type ICE 2022-12-20 13:43:41 +00:00
type_check fix more clippy::style findings 2022-12-25 17:32:26 +01:00
borrow_set.rs rustc_borrowck: remove ref patterns 2022-12-06 14:45:58 +00:00
borrowck_errors.rs Merge multiple mutable borrows of immutable binding errors 2023-01-01 10:09:26 -08:00
constraint_generation.rs lint auto pass 2022-11-09 20:42:16 +08:00
consumers.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
dataflow.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
def_use.rs lint auto pass 2022-11-09 20:42:16 +08:00
facts.rs lint auto pass 2022-11-09 20:42:16 +08:00
invalidation.rs Remove unneeded field from SwitchTargets 2022-12-09 04:53:10 -08:00
lib.rs Merge borrowck permission checks 2023-01-04 15:25:45 +01:00
location.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
member_constraints.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
nll.rs Create format_args as late as possible 2022-12-01 08:49:51 +00:00
path_utils.rs lint auto pass 2022-11-09 20:42:16 +08:00
place_ext.rs lint auto pass 2022-11-09 20:42:16 +08:00
places_conflict.rs OpaqueCast projections are always overlapping, they can't possibly be disjoint 2022-11-23 14:37:13 +00:00
prefixes.rs lint auto pass 2022-11-09 20:42:16 +08:00
renumber.rs lint auto pass 2022-11-09 20:42:16 +08:00
session_diagnostics.rs struct error E0505 2022-11-09 21:15:31 +08:00
universal_regions.rs rustc_borrowck: remove ref patterns 2022-12-06 14:45:58 +00:00
used_muts.rs lint auto pass 2022-11-09 20:42:16 +08:00