rust/compiler
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
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #106361 - clubby789:int-literal-too-large, r=estebank 2023-01-04 07:28:56 +01:00
rustc_ast_lowering Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_ast_passes
rustc_ast_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_builtin_macros Update format.rs 2023-01-02 15:51:54 +05:30
rustc_codegen_cranelift
rustc_codegen_gcc Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_codegen_llvm Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses-for-that, r=cjgillot 2022-12-25 22:15:00 +01:00
rustc_codegen_ssa Auto merge of #106224 - bjorn3:staticlib_fixes, r=wesleywiser 2023-01-04 21:35:15 +00:00
rustc_const_eval rename find_parent_node to opt_parent_id 2023-01-04 00:43:13 +00:00
rustc_data_structures Reduce HIR debug output 2023-01-02 20:15:48 +01:00
rustc_driver Only deduplicate stack traces for good path bugs 2022-12-31 02:14:26 +00:00
rustc_error_codes refactor: merge E0465 into E0464 2022-12-31 20:44:54 +13:00
rustc_error_messages Auto merge of #106224 - bjorn3:staticlib_fixes, r=wesleywiser 2023-01-04 21:35:15 +00:00
rustc_errors Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_expand Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_feature Use the correct tracking issue for dyn_star 2023-01-01 19:56:10 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir get_parent and find_parent 2023-01-04 00:43:13 +00:00
rustc_hir_analysis Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_hir_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_hir_typeck Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_incremental
rustc_index
rustc_infer Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_interface Split -Zchalk flag into -Ztrait-solver=(stock|chalk|next) flag 2023-01-04 18:12:42 +00:00
rustc_lexer Recover fn keyword as Fn trait in bounds 2022-12-27 06:14:46 +00:00
rustc_lint Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_lint_defs fix some typos 2022-12-25 00:43:50 +01:00
rustc_llvm
rustc_log
rustc_macros Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_metadata Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514 2023-01-03 08:05:54 +00:00
rustc_middle Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_mir_build Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_mir_dataflow Fix handling of dead unwinds in backward analyses 2023-01-02 22:24:01 +01:00
rustc_mir_transform Reenable limited top-down MIR inlining 2023-01-01 22:01:29 -08:00
rustc_monomorphize Fix unknown_crate when --crate-name isn't passed on the CLI 2023-01-02 23:02:58 +00:00
rustc_parse Auto merge of #106268 - kraktus:patch-2, r=Nilstrieb 2022-12-30 06:59:13 +00:00
rustc_parse_format Add enum for find_width_map_from_snippet 2022-12-28 17:43:35 +01:00
rustc_passes Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_plugin_impl
rustc_privacy rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
rustc_query_impl Enable query_impl doctests 2023-01-03 20:38:28 -06:00
rustc_query_system Auto merge of #106307 - Nilstrieb:dynamic->static, r=cjgillot 2023-01-02 20:12:16 +00:00
rustc_resolve Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_save_analysis rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
rustc_serialize
rustc_session Rename stock solver to classic 2023-01-04 18:40:02 +00:00
rustc_smir
rustc_span Suggest more impl Trait on -> _ 2023-01-03 23:50:31 +00:00
rustc_symbol_mangling CFI: Monomorphize transparent ADTs before typeid 2022-12-29 10:21:07 -08:00
rustc_target Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiser 2023-01-03 23:38:28 +00:00
rustc_trait_selection Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_traits
rustc_transmute
rustc_ty_utils Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_type_ir