diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2022-05-31 16:47:40 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-05-31 16:47:53 -0300 |
| commit | 208ffbbe8699d169f5f0124d91a6d2b1774172a8 (patch) | |
| tree | 45dfcf91fd6c442f606e55bfa101ee741b0c00bb | |
| parent | bd3a097d64dc5a6db9a9d62bb89a74fe5cf36871 (diff) | |
| download | rust-208ffbbe8699d169f5f0124d91a6d2b1774172a8.tar.gz rust-208ffbbe8699d169f5f0124d91a6d2b1774172a8.zip | |
derive Copy, Clone, PartialEq, Eq for ImplTraitContext
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 8315d7aa3f0..a934bcbe337 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -246,7 +246,7 @@ pub trait ResolverAstLowering { /// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree, /// and if so, what meaning it has. -#[derive(Debug)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] enum ImplTraitContext { /// Treat `impl Trait` as shorthand for a new universal generic parameter. /// Example: `fn foo(x: impl Debug)`, where `impl Debug` is conceptually |
