diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-06-30 10:22:41 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-07-01 15:19:49 +1000 |
| commit | 85e8d94e05959e3ad57738351ce56f95f15a26a6 (patch) | |
| tree | 318e8265030e7e50a8a64f32a29af3a9f11cbb5e /compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs | |
| parent | 00307a5b6f1d81fb5d19f1ef7235ff235ce75d50 (diff) | |
| download | rust-85e8d94e05959e3ad57738351ce56f95f15a26a6.tar.gz rust-85e8d94e05959e3ad57738351ce56f95f15a26a6.zip | |
Change `Ty::Tuple` to `Ty::Unit`.
Because that's all that is needed in practice.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs b/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs index caf4d3a5f77..cb2ad283a19 100644 --- a/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs +++ b/compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs @@ -33,7 +33,7 @@ pub fn expand_deriving_eq( generics: Bounds::empty(), explicit_self: true, args: vec![], - ret_ty: nil_ty(), + ret_ty: Unit, attributes: attrs, unify_fieldless_variants: true, combine_substructure: combine_substructure(Box::new(|a, b, c| { |
