Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Fix new 'attrs' fields in ast::TyParam and ast::LifetimeDef
Browse files Browse the repository at this point in the history
  • Loading branch information
mindsbackyard committed Oct 4, 2016
1 parent 1d6690c commit 53e8ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl IntoLifetimeDef for ast::LifetimeDef {
impl IntoLifetimeDef for ast::Lifetime {
fn into_lifetime_def(self) -> ast::LifetimeDef {
ast::LifetimeDef {
attrs: ast::ThinVec::new(),
lifetime: self,
bounds: vec![],
}
Expand Down Expand Up @@ -109,6 +110,7 @@ impl<F> LifetimeDefBuilder<F>

pub fn build(self) -> F::Result {
self.callback.invoke(ast::LifetimeDef {
attrs: ast::ThinVec::new(),
lifetime: self.lifetime,
bounds: self.bounds,
})
Expand Down
1 change: 1 addition & 0 deletions src/ty_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl<F> TyParamBuilder<F>

pub fn build(self) -> F::Result {
self.callback.invoke(ast::TyParam {
attrs: ast::ThinVec::new(),
ident: self.id,
id: ast::DUMMY_NODE_ID,
bounds: P::from_vec(self.bounds),
Expand Down

0 comments on commit 53e8ba4

Please sign in to comment.