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 b376f49 commit d318bf1Copy full SHA for d318bf1
compiler/rustc_hir/src/hir.rs
@@ -3757,7 +3757,7 @@ impl<'hir> Node<'hir> {
3757
expect_pat_field, &'hir PatField<'hir>, Node::PatField(n), n;
3758
expect_arm, &'hir Arm<'hir>, Node::Arm(n), n;
3759
expect_block, &'hir Block<'hir>, Node::Block(n), n;
3760
- expect_local, &'hir LetStmt<'hir>, Node::Local(n), n;
+ expect_let_stmt, &'hir LetStmt<'hir>, Node::Local(n), n;
3761
expect_ctor, &'hir VariantData<'hir>, Node::Ctor(n), n;
3762
expect_lifetime, &'hir Lifetime, Node::Lifetime(n), n;
3763
expect_generic_param, &'hir GenericParam<'hir>, Node::GenericParam(n), n;
0 commit comments