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

This fixes the strange random crashes in compile-fail tests.

This reverts commit 96cd61ad03.

Conflicts:
	src/librustc/driver/driver.rs
	src/libstd/str.rs
	src/libsyntax/ext/quote.rs
This commit is contained in:
Brian Anderson
2013-06-13 19:06:47 -07:00
parent b417bc8511
commit 7755018074
30 changed files with 104 additions and 90 deletions

View File

@@ -10,6 +10,7 @@
use core::prelude::*;
use core::vec;
use ast;
use ast::Name;
use codemap;
@@ -366,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(),
tts.to_owned());
vec::to_owned(tts));
let mut es = ~[];
while *p.token != token::EOF {
if es.len() != 0 {