Skip to content

Remove -Zborrowck=compare #59193

Closed
Closed
@matthewjasper

Description

@matthewjasper

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 it pub(crate)
  • Move borrowck_errors and suggest_ref_mut into the borrow_check module

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-NLLArea: Non-lexical lifetimes (NLL)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions