Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit c4dae14

Browse files
committed
Using new lifetime_def (fixes #132)
1 parent 75bc322 commit c4dae14

File tree

1 file changed

+1
-2
lines changed
  • platformtree/builder

1 file changed

+1
-2
lines changed

platformtree/builder/os.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ fn build_args(builder: &mut Builder, cx: &mut ExtCtxt,
148148
}
149149

150150
let name_ident = cx.ident_of(format!("{}_args", struct_name).as_slice());
151-
let a_lifetime = cx.lifetime(DUMMY_SP, intern("'a"));
152151
let mut collected_params = vec!();
153152
let mut ty_params_vec = vec!();
154153
for ty in ty_params.iter() {
@@ -173,7 +172,7 @@ fn build_args(builder: &mut Builder, cx: &mut ExtCtxt,
173172
super_struct: None,
174173
is_virtual: false,
175174
}, ast::Generics {
176-
lifetimes: vec!(a_lifetime),
175+
lifetimes: vec!(cx.lifetime_def(DUMMY_SP, intern("'a"), vec!())),
177176
ty_params: OwnedSlice::from_vec(collected_params),
178177
}),
179178
vis: ast::Public,

0 commit comments

Comments
 (0)