rust/compiler/rustc_monomorphize/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
..
partitioning rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
collector.rs Also report the call site of PME errors locally. 2022-04-30 09:04:15 +00:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
polymorphize.rs Use def_key in tcx.item_name when possible. 2022-04-09 10:54:43 +02:00
util.rs Adopt let_else in even more places 2022-02-16 22:43:39 +01:00