Skip to content

Commit 39d2e00

Browse files
committed
---
yaml --- r: 56478 b: refs/heads/auto c: 01b3490 h: refs/heads/master v: v3
1 parent 3290a2e commit 39d2e00

File tree

213 files changed

+1108
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+1108
-150
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: f792baba42b79711b64950c46208a1eb4b9539be
17+
refs/heads/auto: 01b3490a551bc46c3d2b99d1a811ee93201f32f3
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/compiletest/common.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
#[deriving(Eq)]
1214
pub enum mode {
1315
mode_compile_fail,

branches/auto/src/compiletest/compiletest.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010

1111
#[crate_type = "bin"];
1212

13+
#[no_core];
14+
1315
#[allow(vecs_implicitly_copyable)];
1416
#[allow(non_camel_case_types)];
1517
#[allow(deprecated_mode)];
1618
#[allow(deprecated_pattern)];
1719

20+
extern mod core(vers = "0.7-pre");
1821
extern mod std(vers = "0.7-pre");
1922

2023
use core::*;

branches/auto/src/compiletest/errors.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
13+
use core::io;
14+
use core::io::ReaderUtil;
15+
use core::str;
16+
1117
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
1218

1319
// Load any test directives embedded in the file

branches/auto/src/compiletest/header.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use common;
1214
use common::config;
1315

16+
use core::io::ReaderUtil;
17+
use core::io;
18+
use core::os;
19+
use core::str;
20+
1421
pub struct TestProps {
1522
// Lines that should be expected, in order, on standard out
1623
error_patterns: ~[~str],

branches/auto/src/compiletest/procsrv.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
1112

13+
use core::io::{ReaderUtil, WriterUtil};
14+
use core::io;
1215
use core::libc::c_int;
16+
use core::os;
1317
use core::run::spawn_process;
1418
use core::run;
19+
use core::str;
20+
use core::task;
1521

1622
#[cfg(target_os = "win32")]
1723
fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {

branches/auto/src/compiletest/runtest.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use common::mode_run_pass;
1214
use common::mode_run_fail;
1315
use common::mode_compile_fail;
@@ -20,6 +22,13 @@ use procsrv;
2022
use util;
2123
use util::logv;
2224

25+
use core::io::WriterUtil;
26+
use core::io;
27+
use core::os;
28+
use core::str;
29+
use core::uint;
30+
use core::vec;
31+
2332
pub fn run(config: config, testfile: ~str) {
2433
if config.verbose {
2534
// We're going to be dumping a lot of info. Start on a new line.

branches/auto/src/compiletest/util.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use common::config;
1214

15+
use core::io;
1316
use core::os::getenv;
1417

1518
pub fn make_new_path(path: ~str) -> ~str {

branches/auto/src/libfuzzer/fuzzer.rc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#[comment = "The Rust fuzzer library"];
1818
#[license = "MIT/ASL2"];
1919
#[crate_type = "lib"];
20+
#[no_core];
2021

2122
#[legacy_modes];
2223

@@ -25,10 +26,12 @@
2526
#[allow(deprecated_mode)];
2627
#[allow(deprecated_pattern)];
2728

29+
extern mod core(vers = "0.7-pre");
2830
extern mod std(vers = "0.7-pre");
2931
extern mod syntax(vers = "0.7-pre");
3032

31-
use core::run;
33+
use core::*;
34+
use core::io::WriterUtil;
3235

3336
use syntax::{ast, fold, visit, codemap};
3437
use syntax::parse;

branches/auto/src/librust/rust.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#[license = "MIT/ASL2"];
2121
#[crate_type = "lib"];
2222

23+
extern mod core(vers = "0.7-pre");
24+
2325
use core::run;
2426

2527
enum ValidUsage {

branches/auto/src/librustc/back/link.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use back::rpath;
1214
use driver::session::Session;
1315
use driver::session;
@@ -20,12 +22,17 @@ use middle::trans::common::CrateContext;
2022
use middle::ty;
2123
use util::ppaux;
2224

25+
use core::char;
2326
use core::hash::Streaming;
2427
use core::hash;
2528
use core::io::WriterUtil;
2629
use core::libc::{c_int, c_uint};
2730
use core::os::consts::{macos, freebsd, linux, android, win32};
31+
use core::os;
32+
use core::ptr;
2833
use core::run;
34+
use core::str;
35+
use core::vec;
2936
use syntax::ast;
3037
use syntax::ast_map::{path, path_mod, path_name};
3138
use syntax::attr;
@@ -91,7 +98,10 @@ pub mod jit {
9198
use lib::llvm::{ModuleRef, PassManagerRef};
9299
use metadata::cstore;
93100

101+
use core::cast;
94102
use core::libc::c_int;
103+
use core::ptr;
104+
use core::str;
95105

96106
pub mod rusti {
97107
#[nolink]
@@ -173,8 +183,10 @@ pub mod write {
173183
use lib::llvm::{False, ModuleRef, mk_pass_manager, mk_target_data};
174184
use lib;
175185

186+
use core::prelude::*;
176187
use core::libc::{c_int, c_uint};
177188
use core::path::Path;
189+
use core::str;
178190
use core::run;
179191

180192
pub fn is_object_or_assembly_or_exe(ot: output_type) -> bool {

branches/auto/src/librustc/back/rpath.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use driver::session;
1214
use metadata::cstore;
1315
use metadata::filesearch;
1416

17+
use core::os;
18+
use core::uint;
1519
use core::util;
20+
use core::vec;
1621
use core::hashmap::HashSet;
1722

1823
fn not_win32(os: session::os) -> bool {
@@ -196,6 +201,7 @@ mod test {
196201
// FIXME(#2119): the outer attribute should be #[cfg(unix, test)], then
197202
// these redundant #[cfg(test)] blocks can be removed
198203
#[cfg(test)]
204+
use core::prelude::*;
199205
#[cfg(test)]
200206
use back::rpath::{get_absolute_rpath, get_install_prefix_rpath};
201207
#[cfg(test)]

branches/auto/src/librustc/driver/driver.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use back::link;
1214
use back::{arm, x86, x86_64, mips};
1315
use driver::session::{Aggressive};
@@ -891,6 +893,8 @@ pub fn list_metadata(sess: Session, path: &Path, out: @io::Writer) {
891893

892894
#[cfg(test)]
893895
mod test {
896+
use core::prelude::*;
897+
894898
use driver::driver::{build_configuration, build_session};
895899
use driver::driver::{build_session_options, optgroups, str_input};
896900

branches/auto/src/librustc/driver/session.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use back::link;
1214
use back::target_strs;
1315
use back;

branches/auto/src/librustc/front/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use syntax::{ast, fold, attr};
1214

15+
use core::option;
16+
use core::vec;
17+
1318
type in_cfg_pred = @fn(attrs: ~[ast::attribute]) -> bool;
1419

1520
struct Context {

branches/auto/src/librustc/front/core_inject.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use driver::session::Session;
1214

15+
use core::vec;
1316
use syntax::ast;
1417
use syntax::attr;
1518
use syntax::codemap;

branches/auto/src/librustc/front/intrinsic_inject.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use driver::session::Session;
1214
use syntax::parse;
1315
use syntax::ast;
1416
use syntax::codemap::spanned;
1517

18+
use core::vec;
19+
1620
pub fn inject_intrinsic(sess: Session, crate: @ast::crate) -> @ast::crate {
1721
let intrinsic_module = @(include_str!("intrinsic.rs").to_owned());
1822

branches/auto/src/librustc/front/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010

1111
// Code that generates a test runner to run all the tests in a crate
1212

13+
use core::prelude::*;
14+
1315
use driver::session;
1416
use front::config;
1517

18+
use core::vec;
1619
use syntax::ast_util::*;
1720
use syntax::attr;
1821
use syntax::codemap::{dummy_sp, span, ExpandedFrom, CallInfo, NameAndSpan};

branches/auto/src/librustc/lib/llvm.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use core::prelude::*;
12+
1113
use core::hashmap::HashMap;
1214
use core::libc::c_uint;
15+
use core::option;
16+
use core::ptr;
17+
use core::str;
18+
use core::vec;
1319

1420
pub type Opcode = u32;
1521
pub type Bool = c_uint;

branches/auto/src/librustc/metadata/creader.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111

1212
//! Validates all used crates and extern libraries and loads their metadata
1313
14+
use core::prelude::*;
15+
1416
use metadata::cstore;
1517
use metadata::decoder;
1618
use metadata::filesearch::FileSearch;
1719
use metadata::loader;
1820

1921
use core::hashmap::HashMap;
22+
use core::vec;
2023
use syntax::attr;
2124
use syntax::codemap::{span, dummy_sp};
2225
use syntax::diagnostic::span_handler;

branches/auto/src/librustc/metadata/csearch.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
1112
// Searching for information from the cstore
1213

14+
use core::prelude::*;
15+
1316
use metadata::common::*;
1417
use metadata::cstore;
1518
use metadata::decoder;
1619
use metadata;
1720
use middle::{ty, resolve};
1821

22+
use core::vec;
1923
use reader = std::ebml::reader;
2024
use syntax::ast;
2125
use syntax::ast_map;

branches/auto/src/librustc/metadata/cstore.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
// The crate store - a central repo for information collected about external
1313
// crates and libraries
1414

15+
use core::prelude::*;
16+
1517
use metadata::cstore;
1618
use metadata::decoder;
1719

1820
use core::hashmap::HashMap;
21+
use core::vec;
1922
use std;
2023
use syntax::ast;
2124
use syntax::parse::token::ident_interner;

branches/auto/src/librustc/metadata/decoder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
1112
// Decoding metadata from a single crate's metadata
1213

14+
use core::prelude::*;
15+
1316
use metadata::cstore::crate_metadata;
1417
use metadata::common::*;
1518
use metadata::csearch::{ProvidedTraitMethodInfo, StaticMethodInfo};

0 commit comments

Comments
 (0)