Removed libextra dependency from libsyntax.
This commit is contained in:
parent
3f54ca1ec4
commit
11b2515f0f
@ -60,9 +60,9 @@ DEPS_extra := std term sync serialize getopts collections
|
||||
DEPS_green := std native:context_switch
|
||||
DEPS_rustuv := std native:uv native:uv_support
|
||||
DEPS_native := std
|
||||
DEPS_syntax := std extra term serialize collections
|
||||
DEPS_syntax := std term serialize collections
|
||||
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
|
||||
collections
|
||||
collections extra
|
||||
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections
|
||||
DEPS_flate := std native:miniz
|
||||
DEPS_arena := std collections
|
||||
|
@ -15,7 +15,7 @@
|
||||
use syntax::visit::Visitor;
|
||||
|
||||
use std::local_data;
|
||||
use extra;
|
||||
use extra::time;
|
||||
|
||||
pub fn time<T, U>(do_it: bool, what: &str, u: U, f: |U| -> T) -> T {
|
||||
local_data_key!(depth: uint);
|
||||
@ -24,9 +24,9 @@ pub fn time<T, U>(do_it: bool, what: &str, u: U, f: |U| -> T) -> T {
|
||||
let old = local_data::get(depth, |d| d.map(|a| *a).unwrap_or(0));
|
||||
local_data::set(depth, old + 1);
|
||||
|
||||
let start = extra::time::precise_time_s();
|
||||
let start = time::precise_time_s();
|
||||
let rv = f(u);
|
||||
let end = extra::time::precise_time_s();
|
||||
let end = time::precise_time_s();
|
||||
|
||||
println!("{}time: {:3.3f} s\t{}", " ".repeat(old), end - start, what);
|
||||
local_data::set(depth, old);
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#[deny(non_camel_case_types)];
|
||||
|
||||
extern mod extra;
|
||||
#[cfg(test)] extern mod extra;
|
||||
extern mod serialize;
|
||||
extern mod term;
|
||||
extern mod collections;
|
||||
|
Loading…
Reference in New Issue
Block a user