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
..
2022-04-30 17:40:27 -07:00
2022-04-30 17:40:27 -07:00
2022-04-30 18:10:01 -07:00
2022-04-30 17:40:27 -07:00
2022-05-02 01:56:50 +03:00
2022-04-30 13:55:17 +02:00
2022-05-02 01:56:50 +03:00
2022-04-30 05:06:47 +00:00
2022-05-02 01:56:50 +03:00
2022-04-29 02:05:20 +01:00
2022-04-29 02:05:20 +01:00
2022-04-30 13:55:17 +02:00
2022-04-30 17:40:27 -07:00
2022-04-30 17:40:27 -07:00
2022-04-30 13:55:13 +02:00
2022-04-27 08:51:33 +01:00
2022-05-02 01:56:50 +03:00
2022-04-25 00:10:59 +02:00
2022-05-02 01:56:50 +03:00
2022-04-27 10:04:25 -07:00
2022-04-28 13:53:52 -04:00
2022-04-29 02:12:10 +01:00
2022-04-30 13:51:49 +02:00
2022-05-02 01:56:50 +03:00
2022-05-02 01:56:50 +03:00
2022-05-01 15:38:22 +03:00
2022-05-02 01:56:50 +03:00
2022-04-30 17:40:27 -07:00
2022-05-02 01:56:50 +03:00
2022-05-02 01:56:50 +03:00
2022-05-02 01:56:50 +03:00
2022-05-02 01:56:50 +03:00
2022-04-28 20:13:02 +02:00
2022-04-30 17:40:27 -07:00
2022-04-27 07:29:44 -07:00
2022-05-02 01:56:50 +03:00
2022-05-02 01:56:50 +03:00