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:
@@ -14,6 +14,7 @@
|
||||
|
||||
use core::prelude::*;
|
||||
|
||||
use core::vec;
|
||||
use ast;
|
||||
use codemap::span;
|
||||
use ext::base;
|
||||
@@ -43,7 +44,7 @@ pub fn expand_asm(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree])
|
||||
-> base::MacResult {
|
||||
let p = parse::new_parser_from_tts(cx.parse_sess(),
|
||||
cx.cfg(),
|
||||
tts.to_owned());
|
||||
vec::to_owned(tts));
|
||||
|
||||
let mut asm = @"";
|
||||
let mut outputs = ~[];
|
||||
|
||||
Reference in New Issue
Block a user