rust/compiler/rustc_const_eval/src
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
..
const_eval rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
interpret account for custom DSTs in valtree -> constvalue conversion 2022-04-26 18:40:15 +02:00
transform Eliminate duplication of RPO calculation for mir 2022-04-30 03:42:57 +08:00
util rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
lib.rs implement (as of now still unused) query for valtree -> constvalue conversion 2022-04-21 16:37:24 +02:00