Skip to content

Commit 208ffbb

Browse files
committed
derive Copy, Clone, PartialEq, Eq for ImplTraitContext
1 parent bd3a097 commit 208ffbb

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub trait ResolverAstLowering {
246246

247247
/// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree,
248248
/// and if so, what meaning it has.
249-
#[derive(Debug)]
249+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
250250
enum ImplTraitContext {
251251
/// Treat `impl Trait` as shorthand for a new universal generic parameter.
252252
/// Example: `fn foo(x: impl Debug)`, where `impl Debug` is conceptually

0 commit comments

Comments
 (0)