-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 fallout from rust-lang/rust PR 60861 #4123
Conversation
11fb3c1
to
f6a5506
Compare
f6a5506
to
6ef8b57
Compare
Should be ready to go, I think. |
Your build has failed. |
Let's see if we do better this time. |
Formatting error, but it is a little weird (might need to improve on rustfmt side): Diff in /Users/travis/build/rust-lang/rust-clippy/clippy_lints/src/needless_continue.rs at line 210:
F: FnMut(&ast::Block, Option<&ast::Label>),
{
if let ast::ExprKind::While(_, loop_block, label)
- | ast::ExprKind::ForLoop(_, _, loop_block, label)
- | ast::ExprKind::Loop(loop_block, label)
- = &expr.node
+ | ast::ExprKind::ForLoop(_, _, loop_block, label)
+ | ast::ExprKind::Loop(loop_block, label) = &expr.node
{
func(loop_block, label.as_ref());
} |
Ugh... I tested this locally with cargo test. :( The contributing guidelines needs some updating as they say nothing about formatting. |
| ast::ExprKind::ForLoop(_, _, loop_block, label) | ||
| ast::ExprKind::Loop(loop_block, label) | ||
= &expr.node | ||
| ast::ExprKind::ForLoop(_, _, loop_block, label) |
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.
This is truly hideous... cc @topecongiro
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.
Created rust-lang/rustfmt#3648.
@bors r+ |
📌 Commit 46a0e54 has been approved by |
Fix fallout from rust-lang/rust PR 60861 Fixes incoming breakage for unlanded rust-lang/rust#60861. Tests are passing locally; the Rust PR now needs to land first. @Manishearth also says we'll want to split out to a `collapsible_if_let` once we have let-chains working in Rust nightly or something.
☀️ Test successful - checks-travis, status-appveyor |
Replace `unsugar_if` function with `is_if` function cc #4123 (comment) changelog: none r? @Manishearth
Fixes incoming breakage for unlanded rust-lang/rust#60861.
Tests are passing locally; the Rust PR now needs to land first.
@Manishearth also says we'll want to split out to a
collapsible_if_let
once we have let-chains working in Rust nightly or something.