Skip to content

don't hide lifetimes for LateContext #11169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

y21
Copy link
Member

@y21 y21 commented Jul 16, 2023

Running cargo dev new_lint --type methods creates the lint file with hidden lifetimes for the LateContext parameter (i.e. &LateContext, when it should be &LateContext<'_>). This is already warned on with #![warn(rust_2018_idioms)], so clippy should not use hidden lifetimes

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Jul 16, 2023

r? @llogiq

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 16, 2023
@xFrednet
Copy link
Member

LGTM, thank you for the PR :)

@bors r+

@bors
Copy link
Contributor

bors commented Jul 16, 2023

📌 Commit 498db80 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 16, 2023

⌛ Testing commit 498db80 with merge d9c24d1...

@xFrednet
Copy link
Member

Just stealing the review, I saw the PR and it looked interesting and then the review was done :D

r? @xFrednet

@rustbot rustbot assigned xFrednet and unassigned llogiq Jul 16, 2023
@bors
Copy link
Contributor

bors commented Jul 16, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing d9c24d1 to master...

@bors bors merged commit d9c24d1 into rust-lang:master Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants