Auto merge of #66815 - mark-i-m:simplify-borrow_check-errors, r=Dylan-DPC
Reorganize borrow check diagnostic code Currently borrow checker diagnostics are split across many different modules in different places in the `librustc_mir` crate. This moves them all to a `diagnostics` module. This also reduces the nesting of the modules a bit (sooo much nesting). I am also thinking of moving stuff out of the `nll` module since we only have one borrow checker now (🎉 ), and maybe it even makes sense to split out all of this stuff to a `librustc_borrow_check`, but those are for the future. Feel free to ping me here or on zulip and let me know what you think... cc @nikomatsakis @matthewjasper @EddyB
Showing
文件已移动
文件已移动
想要评论请 注册 或 登录