mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
20 lines
748 B
Text
20 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
|
|
}
|
|
}
|