1
Fork 0

Now it compiles

This commit is contained in:
Mrowqa 2018-03-21 23:11:27 +01:00
parent 25abe48307
commit 99b49b532c
2 changed files with 4 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {