Use derivative
for better derive bounds
This commit is contained in:
parent
c1fc1d18cd
commit
c6aa16c469
6 changed files with 21 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue