diff options
| author | Mrowqa <artur.jamro@gmail.com> | 2018-03-21 23:11:27 +0100 |
|---|---|---|
| committer | Mrowqa <artur.jamro@gmail.com> | 2018-03-21 23:11:27 +0100 |
| commit | 99b49b532c8fa2b45179ff346089d9527d05a7a6 (patch) | |
| tree | 2752bb7dde8440187b17244982e6b07632ee5921 /src | |
| parent | 25abe4830769e7bfceff75dc27d443c6d625fe13 (diff) | |
| download | rust-99b49b532c8fa2b45179ff346089d9527d05a7a6.tar.gz rust-99b49b532c8fa2b45179ff346089d9527d05a7a6.zip | |
Now it compiles
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/hir/lowering.rs | 3 | ||||
| -rw-r--r-- | src/librustc/ich/impls_hir.rs | 3 |
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 { |
