Skip to content

Commit d519ed4

Browse files
committed
Auto merge of #4135 - matthiaskrgr:rustup_obsol, r=phansch
rustup rust-lang/rust#60803 changelog: none
2 parents 07b484c + c67d2b1 commit d519ed4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/utils/sugg.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ impl<'a> Sugg<'a> {
136136
| ast::ExprKind::Closure(..)
137137
| ast::ExprKind::If(..)
138138
| ast::ExprKind::IfLet(..)
139-
| ast::ExprKind::ObsoleteInPlace(..)
140139
| ast::ExprKind::Unary(..)
141140
| ast::ExprKind::Match(..) => Sugg::MaybeParen(snippet),
142141
ast::ExprKind::Async(..)
@@ -385,7 +384,6 @@ pub fn make_assoc(op: AssocOp, lhs: &Sugg<'_>, rhs: &Sugg<'_>) -> Sugg<'static>
385384
rhs
386385
),
387386
AssocOp::Assign => format!("{} = {}", lhs, rhs),
388-
AssocOp::ObsoleteInPlace => format!("in ({}) {}", lhs, rhs),
389387
AssocOp::AssignOp(op) => format!("{} {}= {}", lhs, token_to_string(&token::BinOp(op)), rhs),
390388
AssocOp::As => format!("{} as {}", lhs, rhs),
391389
AssocOp::DotDot => format!("{}..{}", lhs, rhs),
@@ -425,7 +423,7 @@ fn associativity(op: &AssocOp) -> Associativity {
425423
use syntax::util::parser::AssocOp::*;
426424

427425
match *op {
428-
ObsoleteInPlace | Assign | AssignOp(_) => Associativity::Right,
426+
Assign | AssignOp(_) => Associativity::Right,
429427
Add | BitAnd | BitOr | BitXor | LAnd | LOr | Multiply | As | Colon => Associativity::Both,
430428
Divide | Equal | Greater | GreaterEqual | Less | LessEqual | Modulus | NotEqual | ShiftLeft | ShiftRight
431429
| Subtract => Associativity::Left,

0 commit comments

Comments
 (0)