about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMrowqa <artur.jamro@gmail.com>2018-03-21 23:11:27 +0100
committerMrowqa <artur.jamro@gmail.com>2018-03-21 23:11:27 +0100
commit99b49b532c8fa2b45179ff346089d9527d05a7a6 (patch)
tree2752bb7dde8440187b17244982e6b07632ee5921 /src
parent25abe4830769e7bfceff75dc27d443c6d625fe13 (diff)
downloadrust-99b49b532c8fa2b45179ff346089d9527d05a7a6.tar.gz
rust-99b49b532c8fa2b45179ff346089d9527d05a7a6.zip
Now it compiles
Diffstat (limited to 'src')
-rw-r--r--src/librustc/hir/lowering.rs3
-rw-r--r--src/librustc/ich/impls_hir.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs
index a35af56bd97..f6bdfde15fc 100644
--- a/src/librustc/hir/lowering.rs
+++ b/src/librustc/hir/lowering.rs
@@ -809,7 +809,7 @@ impl<'a> LoweringContext<'a> {
         }
     }
 
-    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 @@ impl<'a> LoweringContext<'a> {
                             span,
                             pure_wrt_drop: false,
                             synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
+                            attrs: P::new(),
                         });
 
                         hir::TyPath(hir::QPath::Resolved(None, P(hir::Path {
diff --git a/src/librustc/ich/impls_hir.rs b/src/librustc/ich/impls_hir.rs
index e764cedd658..774b1442b71 100644
--- a/src/librustc/ich/impls_hir.rs
+++ b/src/librustc/ich/impls_hir.rs
@@ -203,7 +203,8 @@ impl_stable_hash_for!(struct hir::TyParam {
     default,
     span,
     pure_wrt_drop,
-    synthetic
+    synthetic,
+    attrs
 });
 
 impl_stable_hash_for!(enum hir::GenericParam {