diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2023-12-19 18:09:31 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2023-12-23 00:04:20 +0100 |
| commit | c6aa16c469146082613aebbd138d1614c5254131 (patch) | |
| tree | bb31f0f843bfba9ba4ee97a830bf684aa0e34a55 /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | c1fc1d18cd38cab44696a9b0e0d52633863308fd (diff) | |
| download | rust-c6aa16c469146082613aebbd138d1614c5254131.tar.gz rust-c6aa16c469146082613aebbd138d1614c5254131.zip | |
Use `derivative` for better derive bounds
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/constructor.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs index af0a7497a34..b688051ca9c 100644 --- a/compiler/rustc_pattern_analysis/src/constructor.rs +++ b/compiler/rustc_pattern_analysis/src/constructor.rs @@ -642,7 +642,8 @@ impl OpaqueId { /// `specialize_constructor` returns the list of fields corresponding to a pattern, given a /// constructor. `Constructor::apply` reconstructs the pattern from a pair of `Constructor` and /// `Fields`. -#[derive(Clone, Debug, PartialEq)] +#[derive(derivative::Derivative)] +#[derivative(Debug(bound = ""), Clone(bound = ""), PartialEq(bound = ""))] pub enum Constructor<Cx: TypeCx> { /// Tuples and structs. Struct, |
