Skip to content
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

fix: Emit '_ for lifetime generics in HirDisplay #14978

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

HKalbasi
Copy link
Member

@HKalbasi HKalbasi commented Jun 4, 2023

This makes the generated code not linted by rust_2018_idioms lint. But that is an allow by default lint, so should we do this? Maybe we should only do this for DisplayTarget::SourceCode?

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 4, 2023
@Veykril
Copy link
Member

Veykril commented Jun 5, 2023

But that is an allow by default lint, so should we do this?

We should, that lint should be warn by default anyways, but there was some reason as to why some of the 2018 lints are still allowed by default.

@HKalbasi
Copy link
Member Author

HKalbasi commented Jun 5, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 5, 2023

📌 Commit 5531d46 has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jun 5, 2023

⌛ Testing commit 5531d46 with merge c6a3fe0...

@HKalbasi
Copy link
Member Author

HKalbasi commented Jun 5, 2023

but there was some reason as to why some of the 2018 lints are still allowed by default.

What was the reason?

@Veykril
Copy link
Member

Veykril commented Jun 5, 2023

rust-lang/rust#54910

@bors
Copy link
Collaborator

bors commented Jun 5, 2023

☀️ Test successful - checks-actions
Approved by: HKalbasi
Pushing c6a3fe0 to master...

@bors bors merged commit c6a3fe0 into rust-lang:master Jun 5, 2023
10 checks passed
@lnicola lnicola changed the title Emit '_ for lifetime generics in HirDisplay fix: Emit '_ for lifetime generics in HirDisplay Jun 6, 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.

None yet

5 participants