Skip to content

Commit

Permalink
Removed libextra dependency from libsyntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroesGrave authored and alexcrichton committed Feb 14, 2014
1 parent 3f54ca1 commit 11b2515
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mk/crates.mk
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/librustc/util/common.rs
Expand Up @@ -15,7 +15,7 @@ use syntax::visit;
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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/lib.rs
Expand Up @@ -32,7 +32,7 @@ This API is completely unstable and subject to change.

#[deny(non_camel_case_types)];

extern mod extra;
#[cfg(test)] extern mod extra;
extern mod serialize;
extern mod term;
extern mod collections;
Expand Down

0 comments on commit 11b2515

Please sign in to comment.