rust/compiler/rustc_mir_build/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
..
build Rollup merge of #93313 - tmiasko:uninhabited, r=tmandry 2022-04-20 18:26:01 +02:00
thir rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
check_unsafety.rs only show a simple description in E0133 span label 2022-04-24 18:33:07 +02:00
lib.rs dont make lit_to_mir_constant a query 2022-04-08 11:56:21 +02:00
lints.rs Check the number of arguments first in is_recursive_call 2022-01-29 23:00:54 +01:00