]> git.lizzy.rs Git - rust.git/commitdiff
Now it compiles
authorMrowqa <artur.jamro@gmail.com>
Wed, 21 Mar 2018 22:11:27 +0000 (23:11 +0100)
committerMrowqa <artur.jamro@gmail.com>
Wed, 21 Mar 2018 22:11:27 +0000 (23:11 +0100)
src/librustc/hir/lowering.rs
src/librustc/ich/impls_hir.rs

index a35af56bd97b16569341651cd67a039901f3fa15..f6bdfde15fc5ff962cf7f6f12ab90e49a0febe64 100644 (file)
@@ -809,7 +809,7 @@ fn lower_loop_destination(&mut self, destination: Option<(NodeId, Label)>)
         }
     }
 
-    fn lower_attrs(&mut self, attrs: &Vec<Attribute>) -> hir::HirVec<Attribute> {
+    fn lower_attrs(&mut self, attrs: &[Attribute]) -> hir::HirVec<Attribute> {
         attrs.iter().map(|a| self.lower_attr(a)).collect::<Vec<_>>().into()
     }
 
@@ -1019,6 +1019,7 @@ fn lower_ty(&mut self, t: &Ty, itctx: ImplTraitContext) -> P<hir::Ty> {
                             span,
                             pure_wrt_drop: false,
                             synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
+                            attrs: P::new(),
                         });
 
                         hir::TyPath(hir::QPath::Resolved(None, P(hir::Path {
index e764cedd658b5df4070f031fcd0f5bc33c26c663..774b1442b7101cd0da9aea15ede223d57231ed9b 100644 (file)
@@ -203,7 +203,8 @@ fn hash_stable<W: StableHasherResult>(&self,
     default,
     span,
     pure_wrt_drop,
-    synthetic
+    synthetic,
+    attrs
 });
 
 impl_stable_hash_for!(enum hir::GenericParam {