Skip to content

Commit

Permalink
Account for rust-lang/rust#80357
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Dec 30, 2021
1 parent 4b20cc4 commit bc0cf59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ impl<'tcx> LateLintPass<'tcx> for QuestionMarkInExpression {
if let Some(node_id) = get_non_into_iter_ancestor(cx, expr.hir_id);
if let Node::Expr(ancestor) = cx.tcx.hir().get(node_id);
then {
// smoelius: Matches get a pass.
// smoelius: `Let` and `Match` expressions get a pass.
match ancestor.kind {
ExprKind::Match(..) => {}
ExprKind::Let(..) | ExprKind::Match(..) => {}
_ => {
span_lint_and_help(
cx,
Expand Down

0 comments on commit bc0cf59

Please sign in to comment.