Skip to content

borrowed_box: clean-up, improve suggestion message#17173

Merged
llogiq merged 4 commits into
rust-lang:masterfrom
ada4a:push-pqrxqktlpwuq
Jun 7, 2026
Merged

borrowed_box: clean-up, improve suggestion message#17173
llogiq merged 4 commits into
rust-lang:masterfrom
ada4a:push-pqrxqktlpwuq

Conversation

@ada4a

@ada4a ada4a commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 6, 2026
@rustbot

rustbot commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 8 candidates
  • 8 candidates expanded to 8 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

Lintcheck changes for 15c9677

Lint Added Removed Changed
clippy::borrowed_box 0 0 1

This comment will be updated if you push new changes

ada4a added 4 commits June 6, 2026 19:24
separate commit to improve diffs
- Do the cheaper `Mutability` test first.
- Extract `Res` out of `Path`, since we're fetching the latter anyway.
  Avoids the call to `LateContext::qpath_res` which does the same thing.
- `is_any_trait`: get diagnostic item once -- this is an expensive function
- Move snippet creation inside `span_lint_and_then` -- improves laziness.
- rename test file to match lint name
- calling functions from main isn't necessary for the test to work
@ada4a ada4a force-pushed the push-pqrxqktlpwuq branch from d5d85d2 to 15c9677 Compare June 6, 2026 17:24
@ada4a ada4a changed the title borrowed_box: clean-up borrowed_box: clean-up, improve suggestion message Jun 6, 2026
@llogiq llogiq added this pull request to the merge queue Jun 7, 2026
@llogiq

llogiq commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Thank you! LGTM.

Merged via the queue into rust-lang:master with commit 0ddce95 Jun 7, 2026
14 of 15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 7, 2026
@ada4a ada4a deleted the push-pqrxqktlpwuq branch June 7, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants