Hygienize lifetimes.
This commit is contained in:
parent
8497061a49
commit
7fdc1fb2e4
17 changed files with 31 additions and 33 deletions
|
@ -591,7 +591,7 @@ fn mk_tests(cx: &TestCtxt) -> P<ast::Item> {
|
|||
let struct_type = ecx.ty_path(ecx.path(sp, vec![ecx.ident_of("self"),
|
||||
ecx.ident_of("test"),
|
||||
ecx.ident_of("TestDescAndFn")]));
|
||||
let static_lt = ecx.lifetime(sp, keywords::StaticLifetime.name());
|
||||
let static_lt = ecx.lifetime(sp, keywords::StaticLifetime.ident());
|
||||
// &'static [self::test::TestDescAndFn]
|
||||
let static_type = ecx.ty_rptr(sp,
|
||||
ecx.ty(sp, ast::TyKind::Slice(struct_type)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue