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

Explicitly use version 0.2 of crates

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