about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-22 21:41:05 -0500
committerGitHub <noreply@github.com>2023-12-22 21:41:05 -0500
commit8c50e3eaeef34470a80f099feb2cbbdba2e7d61f (patch)
treead0c5d00194aa5bb53375d28a77f3a3077aaa980 /compiler/rustc_pattern_analysis/src/constructor.rs
parenteef023c806dfdc85a8fbd0cad5b48a787cfb7683 (diff)
parent5fccaee59c290b85612d4adb120b3e745d3f16dd (diff)
downloadrust-8c50e3eaeef34470a80f099feb2cbbdba2e7d61f.tar.gz
rust-8c50e3eaeef34470a80f099feb2cbbdba2e7d61f.zip
Rollup merge of #119230 - Nadrieril:librarify-even-further, r=compiler-errors
Exhaustiveness: clean up after librarification

This cleans up some things that weren't done nicely by https://github.com/rust-lang/rust/pull/118842.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs3
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,