remove false positives of unused_braces#70789
Merged
bors merged 1 commit intorust-lang:masterfrom Apr 8, 2020
Merged
Conversation
eddyb
reviewed
Apr 4, 2020
Member
eddyb
left a comment
There was a problem hiding this comment.
LGTM at a glance, but I'd like the original reviewer to take over.
Member
|
r? @varkor |
Contributor
Author
|
What is that tidy error 😱 |
Contributor
Contributor
|
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 |
Contributor
|
@bors r+ rollup |
Collaborator
|
📌 Commit 817f059 has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Apr 8, 2020
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #70717
We could potentially be more aggressive when linting let bindings by checking if there are any explicit
refs.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