about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-05-21 08:15:06 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-05-31 19:44:05 -0400
commitb40529c5a9201efccead746e4c01f22dcbb89c8c (patch)
treea61d7cc0deac242ea55acdc9367d71611f81ade9
parent9ef768c811fb282ba4d35f68922e05c693d231f3 (diff)
downloadrust-b40529c5a9201efccead746e4c01f22dcbb89c8c.tar.gz
rust-b40529c5a9201efccead746e4c01f22dcbb89c8c.zip
projection predicates can be copy
-rw-r--r--src/librustc/ty/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index 54ef17dce8f..a3cbd7c8c36 100644
--- a/src/librustc/ty/mod.rs
+++ b/src/librustc/ty/mod.rs
@@ -995,7 +995,7 @@ pub type PolyTypeOutlivesPredicate<'tcx> = PolyOutlivesPredicate<Ty<'tcx>, ty::R
 /// equality between arbitrary types. Processing an instance of Form
 /// #2 eventually yields one of these `ProjectionPredicate`
 /// instances to normalize the LHS.
-#[derive(Clone, PartialEq, Eq, Hash)]
+#[derive(Copy, Clone, PartialEq, Eq, Hash)]
 pub struct ProjectionPredicate<'tcx> {
     pub projection_ty: ProjectionTy<'tcx>,
     pub ty: Ty<'tcx>,