std: convert {vec,str}::to_owned to methods.

This commit is contained in:
Huon Wilson
2013-06-11 11:49:51 +10:00
parent e06579bc09
commit 96cd61ad03
31 changed files with 95 additions and 99 deletions

View File

@@ -367,7 +367,7 @@ pub fn get_exprs_from_tts(cx: @ExtCtxt, tts: &[ast::token_tree])
-> ~[@ast::expr] {
let p = parse::new_parser_from_tts(cx.parse_sess(),
cx.cfg(),
vec::to_owned(tts));
tts.to_owned());
let mut es = ~[];
while *p.token != token::EOF {
if es.len() != 0 {