Skip to content

Commit 6a17f14

Browse files
committed
ConstArgExprField node isnt valid in constitute read for never
1 parent 22da487 commit 6a17f14

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/hir

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ impl<'tcx> TyCtxt<'tcx> {
322322
Node::Block(_)
323323
| Node::Arm(_)
324324
| Node::ExprField(_)
325-
| Node::ConstArgExprField(_)
326325
| Node::AnonConst(_)
327326
| Node::ConstBlock(_)
328327
| Node::ConstArg(_)
@@ -360,6 +359,7 @@ impl<'tcx> TyCtxt<'tcx> {
360359
| Node::Infer(_)
361360
| Node::WherePredicate(_)
362361
| Node::PreciseCapturingNonLifetimeArg(_)
362+
| Node::ConstArgExprField(_)
363363
| Node::OpaqueTy(_) => {
364364
unreachable!("no sub-expr expected for {parent_node:?}")
365365
}

0 commit comments

Comments
 (0)