-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
remove false positives of unused_braces #70789
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM at a glance, but I'd like the original reviewer to take over.
r? @varkor |
What is that tidy error 😱
|
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r+ rollup |
📌 Commit 817f059 has been approved by |
Rollup of 9 pull requests Successful merges: - rust-lang#70789 (remove false positives of unused_braces) - rust-lang#70847 (ci: move /var/lib/docker to /mnt on GHA) - rust-lang#70850 (BTreeMap first last proposal tweaks) - rust-lang#70876 (Use a `SmallVec` for `Cache::predecessors`.) - rust-lang#70883 (Clean up E0507 explanation) - rust-lang#70892 (wf: refactor `compute_trait_ref`) - rust-lang#70914 (Corrects a typo in rustdoc documentation.) - rust-lang#70915 (Remove unnecessary TypeFlags::NOMINAL_FLAGS) - rust-lang#70927 (Clean up E0510 explanation) Failed merges: r? @ghost
fixes #70717
We could potentially be more aggressive when linting let bindings by checking if there are any explicit
ref
s.I have been unable to create a snippet which compiles when using braces but has a borrowck error
without them. The closes I've gotten is the following (playground).
r? @eddyb