Skip to content

Commit 43baf21

Browse files
committed
Remove (presumably) unreachable case in type_of
1 parent ced4aa4 commit 43baf21

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_hir_analysis/src/collect/type_of.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,6 @@ pub(super) fn type_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::EarlyBinder<'_
578578
x => bug!("unexpected non-type Node::GenericParam: {:?}", x),
579579
},
580580

581-
// FIXME(voidc): is this correct?
582-
Node::ConstArg(&hir::ConstArg { kind: ConstArgKind::Infer(..), .. }) => tcx.types.usize,
583-
584581
x => {
585582
bug!("unexpected sort of node in type_of(): {:?}", x);
586583
}

0 commit comments

Comments
 (0)