We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hir::Node::expect_local
hir::Node::expect_let_stmt
1 parent 5edb85b commit 101df7dCopy full SHA for 101df7d
compiler/rustc_hir/src/hir.rs
@@ -3755,7 +3755,7 @@ impl<'hir> Node<'hir> {
3755
expect_pat_field, &'hir PatField<'hir>, Node::PatField(n), n;
3756
expect_arm, &'hir Arm<'hir>, Node::Arm(n), n;
3757
expect_block, &'hir Block<'hir>, Node::Block(n), n;
3758
- expect_local, &'hir LetStmt<'hir>, Node::Local(n), n;
+ expect_let_stmt, &'hir LetStmt<'hir>, Node::Local(n), n;
3759
expect_ctor, &'hir VariantData<'hir>, Node::Ctor(n), n;
3760
expect_lifetime, &'hir Lifetime, Node::Lifetime(n), n;
3761
expect_generic_param, &'hir GenericParam<'hir>, Node::GenericParam(n), n;
0 commit comments