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

Allow let_unit_value in more cases #9056

Merged
merged 2 commits into from
Jul 10, 2022
Merged

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jun 27, 2022

fixes #8998

changelog: Lint let_unit_value less aggressively when the type is specified

@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 27, 2022
@Jarcho Jarcho force-pushed the let_unit_indirect branch 3 times, most recently from aa00e5b to d773ce0 Compare June 27, 2022 17:05
@llogiq
Copy link
Contributor

llogiq commented Jun 27, 2022

Thank you!

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 27, 2022

📌 Commit d773ce0 has been approved by llogiq

@bors
Copy link
Collaborator

bors commented Jun 30, 2022

☔ The latest upstream changes (presumably #8666) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Jul 1, 2022

☔ The latest upstream changes (presumably #9082) made this pull request unmergeable. Please resolve the merge conflicts.

* View through locals in `let_unit_value` when determining if inference is required
* Don't remove typed let bindings for more functions
@Jarcho
Copy link
Contributor Author

Jarcho commented Jul 9, 2022

Ping @llogiq. I don't remember if I changed anything since you last checked this.

@llogiq
Copy link
Contributor

llogiq commented Jul 10, 2022

In any case, this looks good.

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 10, 2022

📌 Commit 2872b7e has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 10, 2022

⌛ Testing commit 2872b7e with merge 7ea4592...

@bors
Copy link
Collaborator

bors commented Jul 10, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 7ea4592 to master...

@bors bors merged commit 7ea4592 into rust-lang:master Jul 10, 2022
kpreid added a commit to kpreid/wgpu that referenced this pull request Jul 30, 2022
The `let_unit_value` lint is new in Rust 1.62.
rust-lang/rust-clippy#9056 might quiet it next
release, though, so this may or may not be worth doing.
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.

let_unit_value triggers on generic return value
4 participants