1
Fork 0
rust/compiler/rustc_trait_selection/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
..
traits rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
autoderef.rs Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
infer.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
lib.rs Stabilize derive_default_enum 2022-04-07 20:03:19 -04:00
opaque_types.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00