mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
21 lines
748 B
Text
21 lines
748 B
Text
|
if_chain! {
|
||
|
if let Expr_::ExprBlock(ref block) = stmt.node;
|
||
|
if let Expr_::ExprMatch(ref expr, ref arms, MatchSource::ForLoopDesugar) = block.node;
|
||
|
// unimplemented: `ExprMatch` is not further destructured at the moment
|
||
|
if let Expr_::ExprPath(ref path) = block.node;
|
||
|
if match_qpath(path, &["_result"]);
|
||
|
then {
|
||
|
// report your lint here
|
||
|
}
|
||
|
}
|
||
|
if_chain! {
|
||
|
if let Expr_::ExprBlock(ref block) = expr.node;
|
||
|
if let Expr_::ExprMatch(ref expr, ref arms, MatchSource::ForLoopDesugar) = block.node;
|
||
|
// unimplemented: `ExprMatch` is not further destructured at the moment
|
||
|
if let Expr_::ExprPath(ref path) = block.node;
|
||
|
if match_qpath(path, &["_result"]);
|
||
|
then {
|
||
|
// report your lint here
|
||
|
}
|
||
|
}
|