rust/compiler/rustc_borrowck/src/diagnostics
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
..
bound_region_errors.rs Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk" 2022-03-28 16:27:14 +00:00
conflict_errors.rs make classify_drop_access_kind iterate 2022-04-24 17:27:05 +08:00
explain_borrow.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
find_all_local_uses.rs Suggest using a temporary variable to fix borrowck errors 2021-12-10 14:34:00 -08:00
find_use.rs
mod.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
move_errors.rs use format-args-capture and remove unnecessary nested blocks 2022-04-09 00:01:40 +09:00
mutability_errors.rs errors: span_suggestion takes impl ToString 2022-04-29 02:05:20 +01:00
outlives_suggestion.rs use format-args-capture and remove unnecessary nested blocks 2022-04-09 00:01:40 +09:00
region_errors.rs Recover suggestions to introduce named lifetime under NLL 2022-04-27 22:36:40 +02:00
region_name.rs Lint elided lifetimes in path on the AST. 2022-04-17 11:03:34 +02:00
var_name.rs