We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0246af8 + bdb956e commit c464be9Copy full SHA for c464be9
compiler/rustc_hir_typeck/src/lib.rs
@@ -221,12 +221,6 @@ fn typeck_with_fallback<'tcx>(
221
}))
222
} else if let Node::AnonConst(_) = node {
223
match tcx.hir().get(tcx.hir().parent_id(id)) {
224
- Node::Expr(&hir::Expr {
225
- kind: hir::ExprKind::ConstBlock(ref anon_const), ..
226
- }) if anon_const.hir_id == id => Some(fcx.next_ty_var(TypeVariableOrigin {
227
- kind: TypeVariableOriginKind::TypeInference,
228
- span,
229
- })),
230
Node::Ty(&hir::Ty { kind: hir::TyKind::Typeof(ref anon_const), .. })
231
if anon_const.hir_id == id =>
232
{
0 commit comments