rust/compiler/rustc_const_eval/src/util
Vadim Petrochenkov 5b5964f569 rustc: Panic by default in DefIdTree::parent
Only crate root def-ids don't have a parent, and in majority of cases the argument of `DefIdTree::parent` cannot be a crate root.
So we now panic by default in `parent` and introduce a new non-panicing function `opt_parent` for cases where the argument can be a crate root.

Same applies to `local_parent`/`opt_local_parent`.
2022-05-02 01:56:50 +03:00
..
aggregate.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
alignment.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
call_kind.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
collect_writes.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00
find_self_call.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00
mod.rs Improve error messages even more 2022-02-12 19:24:08 +11:00