Skip to content

Commit 99b49b5

Browse files
committed
Now it compiles
1 parent 25abe48 commit 99b49b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/librustc/hir/lowering.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ impl<'a> LoweringContext<'a> {
809809
}
810810
}
811811

812-
fn lower_attrs(&mut self, attrs: &Vec<Attribute>) -> hir::HirVec<Attribute> {
812+
fn lower_attrs(&mut self, attrs: &[Attribute]) -> hir::HirVec<Attribute> {
813813
attrs.iter().map(|a| self.lower_attr(a)).collect::<Vec<_>>().into()
814814
}
815815

@@ -1019,6 +1019,7 @@ impl<'a> LoweringContext<'a> {
10191019
span,
10201020
pure_wrt_drop: false,
10211021
synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
1022+
attrs: P::new(),
10221023
});
10231024

10241025
hir::TyPath(hir::QPath::Resolved(None, P(hir::Path {

src/librustc/ich/impls_hir.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ impl_stable_hash_for!(struct hir::TyParam {
203203
default,
204204
span,
205205
pure_wrt_drop,
206-
synthetic
206+
synthetic,
207+
attrs
207208
});
208209

209210
impl_stable_hash_for!(enum hir::GenericParam {

0 commit comments

Comments
 (0)