Skip to content

Commit

Permalink
Auto merge of #5264 - flip1995:rustup, r=flip1995
Browse files Browse the repository at this point in the history
Rustup to rust-lang/rust#69506

changelog: none
  • Loading branch information
bors committed Mar 4, 2020
2 parents 9c93f04 + a640696 commit 74eae9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/ui/author/blocks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(stmt_expr_attributes)]
#![allow(redundant_semicolon, clippy::no_effect)]
#![allow(redundant_semicolons, clippy::no_effect)]

#[rustfmt::skip]
fn main() {
Expand Down
5 changes: 1 addition & 4 deletions tests/ui/author/blocks.stdout
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
if_chain! {
if let ExprKind::Block(ref block) = expr.kind;
if let Some(trailing_expr) = &block.expr;
if block.stmts.len() == 1;
if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
if let ExprKind::Tup(ref elements) = e.kind;
if elements.len() == 0;
if block.stmts.len() == 0;
then {
// report your lint here
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/swap.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clippy::blacklisted_name,
clippy::no_effect,
clippy::redundant_clone,
redundant_semicolon,
redundant_semicolons,
unused_assignments
)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clippy::blacklisted_name,
clippy::no_effect,
clippy::redundant_clone,
redundant_semicolon,
redundant_semicolons,
unused_assignments
)]

Expand Down

0 comments on commit 74eae9d

Please sign in to comment.