提交 d13c0c77 编写于 作者: B Brian Anderson

Explicitly use version 0.2 of crates

上级 c83d61de
......@@ -17,4 +17,12 @@
#[crate_type = "bin"];
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
import core::*;
mod pgp;
// cargo.rs - Rust package manager
use rustc;
use std;
import rustc::syntax::{ast, codemap};
import rustc::syntax::parse::parser;
import rustc::util::filesearch::{get_cargo_root, get_cargo_root_nearest,
......
use std;
fn gpg(args: [str]) -> { status: int, out: str, err: str } {
ret run::program_output("gpg", args);
}
......
#[crate_type = "bin"];
use std;
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
import core::*;
mod procsrv;
mod util;
......
......@@ -2,8 +2,13 @@
#[crate_type = "bin"];
use std;
use rustc;
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
import core::*;
// Local Variables:
// fill-column: 78;
......
......@@ -40,7 +40,7 @@ mod core {
// Similar to above. Some magic to make core testable.
#[cfg(test)]
mod std {
use std;
use std(vers = "0.2");
import std::test;
}
......
use std;
import codemap::span;
import std::map::{hashmap, str_hash};
......
......@@ -4,7 +4,12 @@
#[crate_type = "lib"];
use std;
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
import core::*;
mod attr;
mod diagnostic;
......
......@@ -8,6 +8,11 @@
#[crate_type = "lib"];
#[doc = "The Rust standard library"];
#[no_core];
use core(vers = "0.2");
import core::*;
export net, uv;
export c_vec, four, tri, util;
export bitv, deque, fun_treemap, list, map, smallintmap, sort, treemap, ufind;
......@@ -15,7 +20,6 @@ export rope, arena;
export ebml, dbg, getopts, json, rand, sha1, term, time, prettyprint;
export test, tempfile, serialization;
// General io and system-services modules
mod net;
......
use std;
use rustc;
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
import core::*;
// -*- rust -*-
import result::{ok, err};
......
......@@ -9,11 +9,13 @@
#[license = "MIT"];
#[crate_type = "lib"];
use std (name = "std",
vers = "0.2",
url = "https://github.com/mozilla/rust/tree/master/src/libstd");
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
use rustsyntax(vers = "0.2");
use rustsyntax;
import core::*;
mod middle {
mod trans {
......
......@@ -9,8 +9,13 @@
#[license = "MIT"];
#[crate_type = "bin"];
use std;
use rustc;
#[no_core];
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
import core::*;
mod config;
mod parse;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册