rustc: Revert the conversion to interior vectors due to heap corruption
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import std::ivec;
|
||||
import std::vec;
|
||||
import std::option;
|
||||
import std::map::hashmap;
|
||||
@@ -72,8 +71,8 @@ fn expr_to_str(&ext_ctxt cx, @ast::expr expr, str error) -> str {
|
||||
fn expr_to_ident(&ext_ctxt cx, @ast::expr expr, str error) -> ast::ident {
|
||||
alt(expr.node) {
|
||||
case (ast::expr_path(?p)) {
|
||||
if (ivec::len(p.node.types) > 0u
|
||||
|| ivec::len(p.node.idents) != 1u) {
|
||||
if (vec::len(p.node.types) > 0u
|
||||
|| vec::len(p.node.idents) != 1u) {
|
||||
cx.span_fatal(expr.span, error);
|
||||
} else {
|
||||
ret p.node.idents.(0);
|
||||
|
||||
Reference in New Issue
Block a user