1
Fork 0

Hygienize lifetimes.

This commit is contained in:
Jeffrey Seyfried 2017-03-25 21:14:18 +00:00
parent 8497061a49
commit 7fdc1fb2e4
17 changed files with 31 additions and 33 deletions

View file

@ -206,7 +206,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt,
(descriptions.len(), ecx.expr_vec(span, descriptions))
});
let static_ = ecx.lifetime(span, ecx.name_of("'static"));
let static_ = ecx.lifetime(span, Ident::from_str("'static"));
let ty_str = ecx.ty_rptr(
span,
ecx.ty_ident(span, ecx.ident_of("str")),