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 unused_unit false positive #4445

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Conversation

phansch
Copy link
Member

@phansch phansch commented Aug 24, 2019

changelog: Fix unused_unit false positive

For some reason the expr of stmt.node didn't contain the expansion information, but the stmt.span does.

Fixes #4076

@phansch phansch added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 25, 2019
@flip1995
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Aug 26, 2019

📌 Commit 957dedb has been approved by flip1995

bors added a commit that referenced this pull request Aug 26, 2019
Fix unused_unit false positive

changelog: Fix `unused_unit` false positive

For some reason the `expr` of `stmt.node` didn't contain the expansion information, but the `stmt.span` does.

Fixes #4076
@bors
Copy link
Contributor

bors commented Aug 26, 2019

⌛ Testing commit 957dedb with merge fea888f...

@bors
Copy link
Contributor

bors commented Aug 26, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing fea888f to master...

@bors bors merged commit 957dedb into rust-lang:master Aug 26, 2019
@phansch phansch deleted the fix_unused_unit_sugg branch August 26, 2019 14:35
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.

unused_unit false positive for macro inputs
3 participants