Skip to content

Commit 7b772e3

Browse files
committed
---
yaml --- r: 120783 b: refs/heads/dist-snap c: 25951b2 h: refs/heads/master i: 120781: 305d974 120779: 380d2fd 120775: e0c892c 120767: 7a0f338 v: v3
1 parent 7c24ccf commit 7b772e3

File tree

177 files changed

+2163
-2095
lines changed

Some content is hidden

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

177 files changed

+2163
-2095
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 0e12934ed37d0ddc652018b618281ba1819f3403
9+
refs/heads/dist-snap: 25951b22420c5ecb1428a225a4dbb9e7529cf181
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ config.mk
6060
/rt/
6161
/rustllvm/
6262
/test/
63-
/build
6463
/inst/
6564
/mingw-build/
6665
src/.DS_Store

branches/dist-snap/mk/crates.mk

Lines changed: 7 additions & 6 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 libc alloc native:rustrt native:backtrace
63+
DEPS_std := core rand libc alloc native:rustrt native:backtrace
6464
DEPS_graphviz := std
65-
DEPS_green := std rand native:context_switch
65+
DEPS_green := std 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 rand
80+
DEPS_uuid := std serialize
8181
DEPS_sync := std alloc
8282
DEPS_getopts := std
83-
DEPS_collections := std rand debug
83+
DEPS_collections := std debug
8484
DEPS_fourcc := syntax std
8585
DEPS_hexfloat := syntax std
86-
DEPS_num := std rand
86+
DEPS_num := std
8787
DEPS_test := std collections getopts serialize term time regex
8888
DEPS_time := std serialize sync
89-
DEPS_rand := std
89+
DEPS_rand := core
9090
DEPS_url := std collections
9191
DEPS_workcache := std serialize collections log
9292
DEPS_log := std sync
@@ -104,6 +104,7 @@ 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
107108

108109
################################################################################
109110
# You should not need to edit below this line

branches/dist-snap/src/compiletest/compiletest.rs

Lines changed: 34 additions & 36 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_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));
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));
220220
match config.test_shard {
221221
None => logv(c, "test_shard: (all)".to_string()),
222-
Some((a,b)) => logv(c, format_strbuf!("test_shard: {}.{}", a, b))
222+
Some((a,b)) => logv(c, format!("test_shard: {}.{}", a, b))
223223
}
224-
logv(c, format_strbuf!("verbose: {}", config.verbose));
225-
logv(c, format_strbuf!("\n"));
224+
logv(c, format!("verbose: {}", config.verbose));
225+
logv(c, format!("\n"));
226226
}
227227

228228
pub fn opt_str<'a>(maybestr: &'a Option<String>) -> &'a str {
@@ -356,12 +356,10 @@ 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_strbuf!("{}/{}", dir.unwrap_or(""), filename.unwrap_or(""))
359+
format!("{}/{}", dir.unwrap_or(""), filename.unwrap_or(""))
360360
}
361361

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

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

branches/dist-snap/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_strbuf!("ignore-{}", util::get_os(config.target.as_slice()))
123+
format!("ignore-{}", util::get_os(config.target.as_slice()))
124124
}
125125
fn ignore_stage(config: &Config) -> String {
126-
format_strbuf!("ignore-{}",
127-
config.stage_id.as_slice().split('-').next().unwrap())
126+
format!("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_strbuf!("{}:", directive);
246+
let keycolon = format!("{}:", 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)