diff options
| author | Boxy <supbscripter@gmail.com> | 2023-04-27 12:13:22 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-04-27 12:13:28 +0100 |
| commit | bdb956e9b00e9a96c3cc47656e96bdef20ebd999 (patch) | |
| tree | 6e3baf241dd980f1e52c0dc87121ee9553c69dae | |
| parent | 8b8110e1469d459a196f6feb60d82dec48c3cfc2 (diff) | |
| download | rust-bdb956e9b00e9a96c3cc47656e96bdef20ebd999.tar.gz rust-bdb956e9b00e9a96c3cc47656e96bdef20ebd999.zip | |
nits
| -rw-r--r-- | compiler/rustc_hir_typeck/src/lib.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_hir_typeck/src/lib.rs b/compiler/rustc_hir_typeck/src/lib.rs index 5ccac9a6925..3928520153c 100644 --- a/compiler/rustc_hir_typeck/src/lib.rs +++ b/compiler/rustc_hir_typeck/src/lib.rs @@ -221,12 +221,6 @@ fn typeck_with_fallback<'tcx>( })) } else if let Node::AnonConst(_) = node { match tcx.hir().get(tcx.hir().parent_id(id)) { - Node::Expr(&hir::Expr { - kind: hir::ExprKind::ConstBlock(ref anon_const), .. - }) if anon_const.hir_id == id => Some(fcx.next_ty_var(TypeVariableOrigin { - kind: TypeVariableOriginKind::TypeInference, - span, - })), Node::Ty(&hir::Ty { kind: hir::TyKind::Typeof(ref anon_const), .. }) if anon_const.hir_id == id => { |
