Closed
Description
This flag is mostly unused and adds complexity. This may be best to split across multiple PRs.
- Remove the flag (Remove -Z borrowck=compare flag #60513)
- Remove from tests (Remove -Z borrowck=compare flag #60513)
- Remove error reporting from AST borrow check
- Remove librustc_borrowck dependency on librustc_mir
- Remove error codes that are only emitted by AST borrow check
- Remove the
Origin
enum - Remove
BorrowckErrors
trait or make itpub(crate)
- Move
borrowck_errors
andsuggest_ref_mut
into the borrow_check module