rust/compiler/rustc_hir/src
Michael Baikov 12f8d12b41 local_def_path_hash_to_def_id can fail
local_def_path_hash_to_def_id is used by Debug impl for DepNode and it
looks for DefPathHash inside the current compilation. During incremental
compilation we are going through nodes that belong to a previous
compilation and might not be present and a simple attempt to print such
node with tracing::debug (try_mark_parent_green does it for example)
results in a otherwise avoidable panic

Panic was added in https://github.com/rust-lang/rust/pull/82183,
specifically in 2b60338ee9, with a comment "We only use this mapping for
cases where we know that it must succeed.", but I'm not sure if this
property holds when we traverse nodes from the old compilation in order
to figure out if they are valid or not
2024-06-19 07:45:47 -04:00
..
arena.rs Remove unused arena kinds in rustc_hir and rustc_middle. 2023-11-20 15:05:26 +11:00
def_path_hash_map.rs Do not store stable crate id in on-disk hash map. 2023-12-24 17:22:48 +00:00
def.rs Add safe/unsafe to static inside extern blocks 2024-06-04 14:19:43 -03:00
definitions.rs local_def_path_hash_to_def_id can fail 2024-06-19 07:45:47 -04:00
diagnostic_items.rs Replace some instances of FxHashMap/FxHashSet with stable alternatives (mostly in rustc_hir and rustc_ast_lowering) 2023-12-18 21:03:32 +01:00
hir_id.rs Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00
hir.rs Rework precise capturing syntax 2024-06-17 22:35:25 -04:00
intravisit.rs Rework precise capturing syntax 2024-06-17 22:35:25 -04:00
lang_items.rs LangItem-ify Coroutine trait in solvers 2024-06-13 09:34:28 -04:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
pat_util.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
stable_hash_impls.rs Revert "Cache whether a body has inline consts" 2024-06-07 08:33:58 +00:00
target.rs Change DefKind::Static to a struct variant 2024-03-12 05:53:46 +00:00
tests.rs Construct SourceMap at the same time as SessionGlobals. 2024-04-16 13:02:53 +10:00
weak_lang_items.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00