Skip to content

Commit 471daf9

Browse files
committed
---
yaml --- r: 152133 b: refs/heads/try2 c: 0e12934 h: refs/heads/master i: 152131: e641c93 v: v3
1 parent 5adcf19 commit 471daf9

File tree

178 files changed

+2096
-2164
lines changed

Some content is hidden

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

178 files changed

+2096
-2164
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: af7c0303105fd84cb6a83c4fe69c26cd9da75157
8+
refs/heads/try2: 0e12934ed37d0ddc652018b618281ba1819f3403
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ config.mk
6060
/rt/
6161
/rustllvm/
6262
/test/
63+
/build
6364
/inst/
6465
/mingw-build/
6566
src/.DS_Store

branches/try2/mk/crates.mk

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ DEPS_core :=
6060
DEPS_rlibc :=
6161
DEPS_alloc := core libc native:jemalloc
6262
DEPS_debug := std
63-
DEPS_std := core rand libc alloc native:rustrt native:backtrace
63+
DEPS_std := core libc alloc native:rustrt native:backtrace
6464
DEPS_graphviz := std
65-
DEPS_green := std native:context_switch
65+
DEPS_green := std rand native:context_switch
6666
DEPS_rustuv := std native:uv native:uv_support
6767
DEPS_native := std
6868
DEPS_syntax := std term serialize collections log fmt_macros debug
@@ -77,16 +77,16 @@ DEPS_glob := std
7777
DEPS_serialize := std collections log
7878
DEPS_term := std collections log
7979
DEPS_semver := std
80-
DEPS_uuid := std serialize
80+
DEPS_uuid := std serialize rand
8181
DEPS_sync := std alloc
8282
DEPS_getopts := std
83-
DEPS_collections := std debug
83+
DEPS_collections := std rand debug
8484
DEPS_fourcc := syntax std
8585
DEPS_hexfloat := syntax std
86-
DEPS_num := std
86+
DEPS_num := std rand
8787
DEPS_test := std collections getopts serialize term time regex
8888
DEPS_time := std serialize sync
89-
DEPS_rand := core
89+
DEPS_rand := std
9090
DEPS_url := std collections
9191
DEPS_workcache := std serialize collections log
9292
DEPS_log := std sync
@@ -104,7 +104,6 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
104104
ONLY_RLIB_core := 1
105105
ONLY_RLIB_rlibc := 1
106106
ONLY_RLIB_alloc := 1
107-
ONLY_RLIB_rand := 1
108107

109108
################################################################################
110109
# You should not need to edit below this line

branches/try2/src/compiletest/compiletest.rs

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -188,41 +188,41 @@ pub fn parse_config(args: Vec<String> ) -> Config {
188188

189189
pub fn log_config(config: &Config) {
190190
let c = config;
191-
logv(c, format!("configuration:"));
192-
logv(c, format!("compile_lib_path: {}", config.compile_lib_path));
193-
logv(c, format!("run_lib_path: {}", config.run_lib_path));
194-
logv(c, format!("rustc_path: {}", config.rustc_path.display()));
195-
logv(c, format!("src_base: {}", config.src_base.display()));
196-
logv(c, format!("build_base: {}", config.build_base.display()));
197-
logv(c, format!("stage_id: {}", config.stage_id));
198-
logv(c, format!("mode: {}", config.mode));
199-
logv(c, format!("run_ignored: {}", config.run_ignored));
200-
logv(c, format!("filter: {}",
201-
opt_str(&config.filter
202-
.as_ref()
203-
.map(|re| {
204-
re.to_str().into_string()
205-
}))));
206-
logv(c, format!("runtool: {}", opt_str(&config.runtool)));
207-
logv(c, format!("host-rustcflags: {}",
208-
opt_str(&config.host_rustcflags)));
209-
logv(c, format!("target-rustcflags: {}",
210-
opt_str(&config.target_rustcflags)));
211-
logv(c, format!("jit: {}", config.jit));
212-
logv(c, format!("target: {}", config.target));
213-
logv(c, format!("host: {}", config.host));
214-
logv(c, format!("android-cross-path: {}",
215-
config.android_cross_path.display()));
216-
logv(c, format!("adb_path: {}", config.adb_path));
217-
logv(c, format!("adb_test_dir: {}", config.adb_test_dir));
218-
logv(c, format!("adb_device_status: {}",
219-
config.adb_device_status));
191+
logv(c, format_strbuf!("configuration:"));
192+
logv(c, format_strbuf!("compile_lib_path: {}", config.compile_lib_path));
193+
logv(c, format_strbuf!("run_lib_path: {}", config.run_lib_path));
194+
logv(c, format_strbuf!("rustc_path: {}", config.rustc_path.display()));
195+
logv(c, format_strbuf!("src_base: {}", config.src_base.display()));
196+
logv(c, format_strbuf!("build_base: {}", config.build_base.display()));
197+
logv(c, format_strbuf!("stage_id: {}", config.stage_id));
198+
logv(c, format_strbuf!("mode: {}", config.mode));
199+
logv(c, format_strbuf!("run_ignored: {}", config.run_ignored));
200+
logv(c, format_strbuf!("filter: {}",
201+
opt_str(&config.filter
202+
.as_ref()
203+
.map(|re| {
204+
re.to_str().into_string()
205+
}))));
206+
logv(c, format_strbuf!("runtool: {}", opt_str(&config.runtool)));
207+
logv(c, format_strbuf!("host-rustcflags: {}",
208+
opt_str(&config.host_rustcflags)));
209+
logv(c, format_strbuf!("target-rustcflags: {}",
210+
opt_str(&config.target_rustcflags)));
211+
logv(c, format_strbuf!("jit: {}", config.jit));
212+
logv(c, format_strbuf!("target: {}", config.target));
213+
logv(c, format_strbuf!("host: {}", config.host));
214+
logv(c, format_strbuf!("android-cross-path: {}",
215+
config.android_cross_path.display()));
216+
logv(c, format_strbuf!("adb_path: {}", config.adb_path));
217+
logv(c, format_strbuf!("adb_test_dir: {}", config.adb_test_dir));
218+
logv(c, format_strbuf!("adb_device_status: {}",
219+
config.adb_device_status));
220220
match config.test_shard {
221221
None => logv(c, "test_shard: (all)".to_string()),
222-
Some((a,b)) => logv(c, format!("test_shard: {}.{}", a, b))
222+
Some((a,b)) => logv(c, format_strbuf!("test_shard: {}.{}", a, b))
223223
}
224-
logv(c, format!("verbose: {}", config.verbose));
225-
logv(c, format!("\n"));
224+
logv(c, format_strbuf!("verbose: {}", config.verbose));
225+
logv(c, format_strbuf!("\n"));
226226
}
227227

228228
pub fn opt_str<'a>(maybestr: &'a Option<String>) -> &'a str {
@@ -356,10 +356,12 @@ pub fn make_test_name(config: &Config, testfile: &Path) -> test::TestName {
356356
let filename = path.filename_str();
357357
let p = path.dir_path();
358358
let dir = p.filename_str();
359-
format!("{}/{}", dir.unwrap_or(""), filename.unwrap_or(""))
359+
format_strbuf!("{}/{}", dir.unwrap_or(""), filename.unwrap_or(""))
360360
}
361361

362-
test::DynTestName(format!("[{}] {}", config.mode, shorten(testfile)))
362+
test::DynTestName(format_strbuf!("[{}] {}",
363+
config.mode,
364+
shorten(testfile)))
363365
}
364366

365367
pub fn make_test_closure(config: &Config, testfile: &Path) -> test::TestFn {

branches/try2/src/compiletest/header.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ pub fn load_props(testfile: &Path) -> TestProps {
120120

121121
pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
122122
fn ignore_target(config: &Config) -> String {
123-
format!("ignore-{}", util::get_os(config.target.as_slice()))
123+
format_strbuf!("ignore-{}", util::get_os(config.target.as_slice()))
124124
}
125125
fn ignore_stage(config: &Config) -> String {
126-
format!("ignore-{}",
127-
config.stage_id.as_slice().split('-').next().unwrap())
126+
format_strbuf!("ignore-{}",
127+
config.stage_id.as_slice().split('-').next().unwrap())
128128
}
129129

130130
let val = iter_header(testfile, |ln| {
@@ -243,7 +243,7 @@ fn parse_name_directive(line: &str, directive: &str) -> bool {
243243

244244
pub fn parse_name_value_directive(line: &str, directive: String)
245245
-> Option<String> {
246-
let keycolon = format!("{}:", directive);
246+
let keycolon = format_strbuf!("{}:", directive);
247247
match line.find_str(keycolon.as_slice()) {
248248
Some(colon) => {
249249
let value = line.slice(colon + keycolon.len(),

0 commit comments

Comments
 (0)