Skip to content

Emit all borrowck errors at the end of borrowck#158916

Open
oli-obk wants to merge 4 commits into
rust-lang:mainfrom
oli-obk:borrowck-delayed-diags
Open

Emit all borrowck errors at the end of borrowck#158916
oli-obk wants to merge 4 commits into
rust-lang:mainfrom
oli-obk:borrowck-delayed-diags

Conversation

@oli-obk

@oli-obk oli-obk commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

cc rust-lang/rust-project-goals#713

best reviewed commit by commit.

This changes some diagnostic ordering and tainting effects on diagnostics, but generally that should be an improvement as all diagnostics are sorted by their line numbers now

r? @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 7, 2026
@rust-log-analyzer

This comment has been minimized.

@oli-obk

oli-obk commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

help! @rust-lang/rustdoc what is this error and how can it possibly be caused from borrowck changes?

@GuillaumeGomez

Copy link
Copy Markdown
Member

It's a flaky error. Should be fixed once #158913 is merged. Restarted failed jobs.

@lcnr lcnr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit 3 and 4 overlap somewhat, when is rcx.dcx used 🤔

View changes since this review

impl<'diag, 'tcx> crate::MirBorrowckCtxt<'_, 'diag, 'tcx> {
pub(crate) fn dcx(&self) -> DiagCtxtHandle<'diag> {
self.infcx.dcx()
self.root_cx.dcx()

@lcnr lcnr Jul 13, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lcnr

lcnr commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f06dbe0 has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 13, 2026
@rust-bors

This comment has been minimized.

@oli-obk
oli-obk force-pushed the borrowck-delayed-diags branch from f06dbe0 to ac3b398 Compare July 17, 2026 13:57
@rustbot

rustbot commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@oli-obk

oli-obk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@bors r=lcnr

@rust-bors

rust-bors Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

📌 Commit ac3b398 has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 17, 2026
rust-bors Bot pushed a commit that referenced this pull request Jul 17, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #158544 (Move `std::io::Read` to `alloc::io`)
 - #158668 (`DeeplyNormalize` and `normalize_with_depth_to` take `Unnormalized<T>` as input)
 - #157514 ([tiny] Use multipart suggestion for finding ident when literal was expected in attr)
 - #158748 (improve diagnostic suggestion when matching struct variants with tuple)
 - #159463 (triagebot: tweak wording for miri changes message)

Failed merges:

 - #158916 (Emit all borrowck errors at the end of borrowck)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants