Make syntax::owned_slice a Box<[T]> wrapper.

This makes it correct (e.g. avoiding null pointers) and safe.
This commit is contained in:
Huon Wilson
2014-11-24 15:56:34 +11:00
parent dd5ce5ae2f
commit 4653ad0205
4 changed files with 19 additions and 90 deletions

View File

@@ -2458,7 +2458,7 @@ impl<'a> State<'a> {
s.print_lifetime_def(lifetime)
} else {
let idx = idx - generics.lifetimes.len();
let param = generics.ty_params.get(idx);
let param = &generics.ty_params[idx];
s.print_ty_param(param)
}
}));