Skip to content

single_use_lifetimes: respect anonymous_lifetime_in_impl_trait - #155346

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
GrigorenkoPV:single-use-lifetimes
Apr 20, 2026
Merged

single_use_lifetimes: respect anonymous_lifetime_in_impl_trait#155346
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
GrigorenkoPV:single-use-lifetimes

Conversation

@GrigorenkoPV

@GrigorenkoPVGrigorenkoPV commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Tracking issue: #44752 (for the single_use_lifetimes lint; the anonymous_lifetime_in_impl_trait feature seems to have no tracking issue).

Closes#129255
Closes#135550

@rustbot label A-diagnostics A-lifetimes A-lints D-incorrect L-single_use_lifetimes

@rustbotrustbot 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 Apr 15, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @jdonszelmann

rustbot has assigned @jdonszelmann.
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: compiler
  • compiler expanded to 69 candidates
  • Random selection from 15 candidates

@rustbot

Copy link
Copy Markdown
Collaborator

Error: Unknown labels: A-lint

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@rustbotrustbot added A-diagnostics Area: Messages for errors, warnings, and lints A-lifetimes Area: Lifetimes / regions A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. D-incorrect Diagnostics: A diagnostic that is giving misleading or incorrect information. L-single_use_lifetimes Lint: single_use_lifetimes labels Apr 15, 2026
@jdonszelmann

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-borsBot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 103923f has been approved by jdonszelmann

It is now in the queue for this repository.

@rust-borsrust-borsBot 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-review Status: Awaiting review from the assignee but also interested parties. labels Apr 20, 2026
rust-borsBot pushed a commit that referenced this pull request Apr 20, 2026
…uwer
Rollup of 11 pull requests
Successful merges:
- #154654 (Move `std::io::ErrorKind` to `core::io`)
- #145270 (Fix an ICE observed with an explicit tail-call in a default trait method)
- #154895 (borrowck: Apply `user_arg_index` nomenclature more broadly)
- #155213 (resolve: Make sure visibilities of import declarations make sense)
- #155346 (`single_use_lifetimes`: respect `anonymous_lifetime_in_impl_trait`)
- #155517 (Add a test for Mach-O `#[link_section]` API inherited from LLVM)
- #155549 (Remove some unnecessary lifetimes.)
- #154248 (resolve : mark repr_simd as internal)
- #154772 (slightly optimize the `non-camel-case-types` lint)
- #155541 (Add `#[rust_analyzer::prefer_underscore_import]` to the traits in `rustc_type_ir::inherent`)
- #155544 (bootstrap: Make "detected modifications" for download-rustc less verbose)
@rust-bors
rust-borsBot merged commit 1d9b32a into rust-lang:mainApr 20, 2026
11 checks passed
@rustbotrustbot added this to the 1.97.0 milestone Apr 20, 2026
rust-timer added a commit that referenced this pull request Apr 20, 2026
Rollup merge of #155346 - GrigorenkoPV:single-use-lifetimes, r=jdonszelmann
`single_use_lifetimes`: respect `anonymous_lifetime_in_impl_trait`
Tracking issue: #44752 (for the `single_use_lifetimes` lint; the `anonymous_lifetime_in_impl_trait` feature seems to have no tracking issue).
Closes#129255Closes#135550@rustbot label A-diagnostics A-lifetimes A-lints D-incorrect L-single_use_lifetimes
@GrigorenkoPV
GrigorenkoPV deleted the single-use-lifetimes branch April 20, 2026 19:46
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Apr 21, 2026
…uwer
Rollup of 11 pull requests
Successful merges:
- rust-lang/rust#154654 (Move `std::io::ErrorKind` to `core::io`)
- rust-lang/rust#145270 (Fix an ICE observed with an explicit tail-call in a default trait method)
- rust-lang/rust#154895 (borrowck: Apply `user_arg_index` nomenclature more broadly)
- rust-lang/rust#155213 (resolve: Make sure visibilities of import declarations make sense)
- rust-lang/rust#155346 (`single_use_lifetimes`: respect `anonymous_lifetime_in_impl_trait`)
- rust-lang/rust#155517 (Add a test for Mach-O `#[link_section]` API inherited from LLVM)
- rust-lang/rust#155549 (Remove some unnecessary lifetimes.)
- rust-lang/rust#154248 (resolve : mark repr_simd as internal)
- rust-lang/rust#154772 (slightly optimize the `non-camel-case-types` lint)
- rust-lang/rust#155541 (Add `#[rust_analyzer::prefer_underscore_import]` to the traits in `rustc_type_ir::inherent`)
- rust-lang/rust#155544 (bootstrap: Make "detected modifications" for download-rustc less verbose)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-lifetimesArea: Lifetimes / regionsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.D-incorrectDiagnostics: A diagnostic that is giving misleading or incorrect information.L-single_use_lifetimesLint: single_use_lifetimesS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

3 participants

@GrigorenkoPV@rustbot@jdonszelmann