]> git.lizzy.rs Git - rust.git/commitdiff
projection predicates can be copy
authorNiko Matsakis <niko@alum.mit.edu>
Sat, 21 May 2016 12:15:06 +0000 (08:15 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 31 May 2016 23:44:05 +0000 (19:44 -0400)
src/librustc/ty/mod.rs

index 54ef17dce8f03db8ba8dbc24f98fdd612e751002..a3cbd7c8c3696a29d7364d9f722394f164ae1194 100644 (file)
@@ -995,7 +995,7 @@ pub fn dep_node(&self) -> DepNode<DefId> {
 /// 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>,