rust/compiler/rustc_middle/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
..
dep_graph rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
hir get_parent and find_parent 2023-01-04 00:43:13 +00:00
infer implement the skeleton of the updated trait solver 2022-12-19 16:46:17 +00:00
middle rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
mir rename find_parent_node to opt_parent_id 2023-01-04 00:43:13 +00:00
query better names and a comment 2022-12-28 04:18:37 +00:00
thir Use boxed slices in PatKind. 2022-09-02 07:26:22 +10:00
traits Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholk 2022-12-24 00:31:41 +01:00
ty Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs Rename ConstS to ConstData 2022-12-16 10:02:51 +00:00
error.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs Only allow feeding a value to newly created definitions. 2022-11-29 18:43:00 +00:00
lint.rs rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
macros.rs add inline to TrivialTypeTraversalImpls 2022-10-17 10:54:03 +02:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs
thir.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
values.rs Use DepKind instead of &str 2022-12-23 18:39:49 +05:30