diff options
| author | Alona Enraght-Moony <code@alona.page> | 2023-12-19 22:47:30 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2023-12-20 00:07:34 +0000 |
| commit | 11337805fba24f88a00c137f6a5af1af296bd71e (patch) | |
| tree | 6fdd2b181c891e96939dbfd986e14b02a3f34a3b /compiler/rustc_hir/src/def.rs | |
| parent | 69e4545a8d80dd52f65b0727a1a88677c7e98e3d (diff) | |
| download | rust-11337805fba24f88a00c137f6a5af1af296bd71e.tar.gz rust-11337805fba24f88a00c137f6a5af1af296bd71e.zip | |
Give `VariantData::Struct` named fields, to clairfy `recovered`.
Diffstat (limited to 'compiler/rustc_hir/src/def.rs')
| -rw-r--r-- | compiler/rustc_hir/src/def.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index e2bccf1ffa5..81ec7ddb629 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -603,7 +603,7 @@ impl CtorKind { match *vdata { ast::VariantData::Tuple(_, node_id) => Some((CtorKind::Fn, node_id)), ast::VariantData::Unit(node_id) => Some((CtorKind::Const, node_id)), - ast::VariantData::Struct(..) => None, + ast::VariantData::Struct { .. } => None, } } } |
