derive Copy, Clone, PartialEq, Eq for ImplTraitContext

This commit is contained in:
Santiago Pastorino 2022-05-31 16:47:40 -03:00
parent bd3a097d64
commit 208ffbbe86
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -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