Skip to content

Commit a063000

Browse files
committed
---
yaml --- r: 153399 b: refs/heads/try2 c: 7158e8a h: refs/heads/master i: 153397: 86a466c 153395: 0c1b084 153391: 42163e2 v: v3
1 parent c0db4b5 commit a063000

File tree

467 files changed

+18006
-17558
lines changed

Some content is hidden

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

467 files changed

+18006
-17558
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: 3d70f50b2ce2e04bb8db934721eeaddb80a7cc27
8+
refs/heads/try2: 7158e8a1b7cad8fc55e390bf0c026f297a690931
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ src/etc/pkg/rust-logo.ico binary
88
src/etc/pkg/rust-logo.png binary
99
src/rt/msvc/* -whitespace
1010
src/rt/valgrind/* -whitespace
11-
*.woff binary

branches/try2/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
418418
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
419419
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
420420
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
421-
opt rpath 0 "build rpaths into rustc itself"
421+
opt rpath 1 "build rpaths into rustc itself"
422422
opt nightly 0 "build nightly packages"
423423
opt verify-install 1 "verify installed binaries work"
424424
opt jemalloc 1 "build liballoc with jemalloc"

branches/try2/man/rustc.1

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "March 2014" "rustc 0.12.0-pre" "User Commands"
1+
.TH RUSTC "1" "March 2014" "rustc 0.11.0" "User Commands"
22
.SH NAME
33
rustc \- The Rust compiler
44
.SH SYNOPSIS
@@ -11,9 +11,6 @@ This program is a compiler for the Rust language, available at
1111

1212
.SH OPTIONS
1313

14-
.TP
15-
\fB\-\-crate-name NAME\fR
16-
Specify the name of the crate being built
1714
.TP
1815
\fB\-\-crate-type=[bin|lib|dylib|rlib|staticlib]\fR
1916
Configure the flavor of rust crate that is generated (default `bin`)
@@ -63,9 +60,8 @@ Parse only; do not compile, assemble, or link
6360
\fB\-\-pretty\fR [TYPE]
6461
Pretty-print the input instead of compiling; valid types are: normal
6562
(un-annotated source), expanded (crates expanded), typed (crates
66-
expanded, with type annotations), identified (fully parenthesized,
67-
AST nodes and blocks with IDs), or flowgraph=<nodeid> (graphviz
68-
formatted flowgraph for node)
63+
expanded, with type annotations), or identified (fully parenthesized,
64+
AST nodes and blocks with IDs)
6965
.TP
7066
\fB\-\-dep-info\fR [FILENAME]
7167
Output dependency info to <filename> after compiling, in o format suitable
@@ -142,8 +138,8 @@ A space-separated list of arguments to pass through to LLVM.
142138
If specified, the compiler will save more files (.bc, .o, .no-opt.bc) generated
143139
throughout compilation in the output directory.
144140
.TP
145-
\fBrpath\fR
146-
If specified, then the rpath value for dynamic libraries will be set in
141+
\fBno-rpath\fR
142+
If specified, then the rpath value for dynamic libraries will not be set in
147143
either dynamic library or executable outputs.
148144
.TP
149145
\fBno-prepopulate-passes\fR

branches/try2/man/rustdoc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTDOC "1" "March 2014" "rustdoc 0.12.0-pre" "User Commands"
1+
.TH RUSTDOC "1" "March 2014" "rustdoc 0.11.0" "User Commands"
22
.SH NAME
33
rustdoc \- generate documentation from Rust source code
44
.SH SYNOPSIS

branches/try2/mk/crates.mk

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,17 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
url log regex graphviz core rlibc alloc debug rustrt \
55-
unicode
54+
url log regex graphviz core rlibc alloc debug rustrt
5655
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5756
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5857
TOOLS := compiletest rustdoc rustc
5958

6059
DEPS_core :=
6160
DEPS_rlibc :=
62-
DEPS_unicode := core
6361
DEPS_alloc := core libc native:jemalloc
6462
DEPS_debug := std
6563
DEPS_rustrt := alloc core libc collections native:rustrt_native
66-
DEPS_std := core libc rand alloc collections rustrt sync unicode \
64+
DEPS_std := core libc rand alloc collections rustrt sync \
6765
native:rust_builtin native:backtrace
6866
DEPS_graphviz := std
6967
DEPS_green := std native:context_switch
@@ -84,7 +82,7 @@ DEPS_semver := std
8482
DEPS_uuid := std serialize
8583
DEPS_sync := core alloc rustrt collections
8684
DEPS_getopts := std
87-
DEPS_collections := core alloc unicode
85+
DEPS_collections := core alloc
8886
DEPS_fourcc := rustc syntax std
8987
DEPS_hexfloat := rustc syntax std
9088
DEPS_num := std
@@ -110,7 +108,6 @@ ONLY_RLIB_rlibc := 1
110108
ONLY_RLIB_alloc := 1
111109
ONLY_RLIB_rand := 1
112110
ONLY_RLIB_collections := 1
113-
ONLY_RLIB_unicode := 1
114111

115112
################################################################################
116113
# You should not need to edit below this line

branches/try2/mk/dist.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ distcheck-tar-bins: dist-tar-bins
259259
$(Q)cd tmp/distcheck && tar -xzf ../../dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz
260260
$(Q)mkdir -p tmp/distcheck/tarbininstall
261261
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall
262+
$(Q)tmp/distcheck/tarbininstall/bin/rustc --version
262263
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall --uninstall
263264
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)
264265
$(Q)rm -Rf tmp/distcheck/tarbininstall

branches/try2/mk/install.mk

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@ else
1414
MAYBE_DISABLE_VERIFY=
1515
endif
1616

17-
install: dist-install-dir-$(CFG_BUILD)-with-target-libs | tmp/empty_dir
18-
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)" "$(MAYBE_DISABLE_VERIFY)"
17+
install: dist-install-dir-$(CFG_BUILD)-with-target-libs
18+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)" "$(MAYBE_DISABLE_VERIFY)"
1919
# Remove tmp files while we can because they may have been created under sudo
2020
$(Q)rm -R tmp/dist
2121

22-
uninstall: dist-install-dir-$(CFG_BUILD)-with-target-libs | tmp/empty_dir
23-
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)"
22+
uninstall: dist-install-dir-$(CFG_BUILD)-with-target-libs
23+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)"
2424
# Remove tmp files while we can because they may have been created under sudo
2525
$(Q)rm -R tmp/dist
2626

27-
tmp/empty_dir:
28-
mkdir -p $@
2927

3028
######################################################################
3129
# Android remote installation

branches/try2/mk/main.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=0.12.0
17-
CFG_RELEASE_LABEL=-pre
16+
CFG_RELEASE_NUM=0.11.0
17+
CFG_RELEASE_LABEL=
1818

1919
CFG_FILENAME_EXTRA=4e7c5e5c
2020

@@ -122,8 +122,8 @@ endif
122122
ifdef TRACE
123123
CFG_RUSTC_FLAGS += -Z trace
124124
endif
125-
ifdef CFG_ENABLE_RPATH
126-
CFG_RUSTC_FLAGS += -C rpath
125+
ifdef CFG_DISABLE_RPATH
126+
CFG_RUSTC_FLAGS += -C no-rpath
127127
endif
128128

129129
# The executables crated during this compilation process have no need to include

branches/try2/mk/target.mk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ $(foreach host,$(CFG_HOST), \
6868
# $(4) is the crate name
6969
define RUST_TARGET_STAGE_N
7070

71+
# NOTE: after a stage0 snap this should be just EXTRA_FILENAME, not with a stage
72+
# or target bound
73+
EXTRA_FILENAME_$(1)_$(2) = -C extra-filename=-$$(CFG_FILENAME_EXTRA)
74+
ifeq ($(1),0)
75+
ifeq ($$(CFG_BUILD),$(2))
76+
EXTRA_FILENAME_$(1)_$(2) =
77+
endif
78+
endif
79+
7180
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
7281
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
7382
$$(CRATEFILE_$(4)) \
@@ -86,7 +95,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8695
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
8796
$$(RUSTFLAGS_$(4)) \
8897
--out-dir $$(@D) \
89-
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \
98+
$$(EXTRA_FILENAME_$(1)_$(2)) \
9099
$$<
91100
@touch $$@
92101
$$(call LIST_ALL_OLD_GLOB_MATCHES,\

branches/try2/mk/tests.mk

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

1616
# The names of crates that must be tested
1717

18-
# libcore/libunicode tests are in a separate crate
18+
# libcore tests are in a separate crate
1919
DEPS_coretest :=
2020
$(eval $(call RUST_CRATE,coretest))
2121

22-
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
22+
TEST_TARGET_CRATES = $(filter-out core,$(TARGET_CRATES)) coretest
2323
TEST_DOC_CRATES = $(DOC_CRATES)
2424
TEST_HOST_CRATES = $(HOST_CRATES)
2525
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
@@ -171,7 +171,7 @@ endif
171171
# Main test targets
172172
######################################################################
173173

174-
check: cleantmptestlogs cleantestlibs check-notidy tidy
174+
check: cleantmptestlogs cleantestlibs tidy check-notidy
175175

176176
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
177177
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log

branches/try2/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn log_config(config: &Config) {
187187
opt_str(&config.filter
188188
.as_ref()
189189
.map(|re| {
190-
re.to_string().into_string()
190+
re.to_str().into_string()
191191
}))));
192192
logv(c, format!("runtool: {}", opt_str(&config.runtool)));
193193
logv(c, format!("host-rustcflags: {}",

branches/try2/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn load_errors(re: &Regex, testfile: &Path) -> Vec<ExpectedError> {
3131
fn parse_expected(line_num: uint, line: &str, re: &Regex) -> Option<ExpectedError> {
3232
re.captures(line).and_then(|caps| {
3333
let adjusts = caps.name("adjusts").len();
34-
let kind = caps.name("kind").to_ascii().to_lower().into_string();
34+
let kind = caps.name("kind").to_ascii().to_lower().into_str();
3535
let msg = caps.name("msg").trim().to_string();
3636

3737
debug!("line={} kind={} msg={}", line_num, kind, msg);

branches/try2/src/compiletest/procsrv.rs

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

11+
use std::os;
1112
use std::str;
1213
use std::io::process::{ProcessExit, Command, Process, ProcessOutput};
1314
use std::dynamic_lib::DynamicLibrary;
1415

15-
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
16+
fn target_env(lib_path: &str, aux_path: Option<&str>) -> Vec<(String, String)> {
1617
// Need to be sure to put both the lib_path and the aux path in the dylib
1718
// search path for the child.
1819
let mut path = DynamicLibrary::search_path();
@@ -22,11 +23,19 @@ fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
2223
}
2324
path.insert(0, Path::new(lib_path));
2425

25-
// Add the new dylib search path var
26+
// Remove the previous dylib search path var
2627
let var = DynamicLibrary::envvar();
28+
let mut env: Vec<(String,String)> = os::env();
29+
match env.iter().position(|&(ref k, _)| k.as_slice() == var) {
30+
Some(i) => { env.remove(i); }
31+
None => {}
32+
}
33+
34+
// Add the new dylib search path var
2735
let newpath = DynamicLibrary::create_path(path.as_slice());
2836
let newpath = str::from_utf8(newpath.as_slice()).unwrap().to_string();
29-
cmd.env(var.to_string(), newpath);
37+
env.push((var.to_string(), newpath));
38+
return env;
3039
}
3140

3241
pub struct Result {pub status: ProcessExit, pub out: String, pub err: String}
@@ -38,14 +47,8 @@ pub fn run(lib_path: &str,
3847
env: Vec<(String, String)> ,
3948
input: Option<String>) -> Option<Result> {
4049

41-
let mut cmd = Command::new(prog);
42-
cmd.args(args);
43-
add_target_env(&mut cmd, lib_path, aux_path);
44-
for (key, val) in env.move_iter() {
45-
cmd.env(key, val);
46-
}
47-
48-
match cmd.spawn() {
50+
let env = env.clone().append(target_env(lib_path, aux_path).as_slice());
51+
match Command::new(prog).args(args).env(env.as_slice()).spawn() {
4952
Ok(mut process) => {
5053
for input in input.iter() {
5154
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();
@@ -70,14 +73,8 @@ pub fn run_background(lib_path: &str,
7073
env: Vec<(String, String)> ,
7174
input: Option<String>) -> Option<Process> {
7275

73-
let mut cmd = Command::new(prog);
74-
cmd.args(args);
75-
add_target_env(&mut cmd, lib_path, aux_path);
76-
for (key, val) in env.move_iter() {
77-
cmd.env(key, val);
78-
}
79-
80-
match cmd.spawn() {
76+
let env = env.clone().append(target_env(lib_path, aux_path).as_slice());
77+
match Command::new(prog).args(args).env(env.as_slice()).spawn() {
8178
Ok(mut process) => {
8279
for input in input.iter() {
8380
process.stdin.get_mut_ref().write(input.as_bytes()).unwrap();

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
574574
cmd.arg("./src/etc/lldb_batchmode.py")
575575
.arg(test_executable)
576576
.arg(debugger_script)
577-
.env_set_all([("PYTHONPATH", config.lldb_python_dir.clone().unwrap().as_slice())]);
577+
.env([("PYTHONPATH", config.lldb_python_dir.clone().unwrap().as_slice())]);
578578

579579
let (status, out, err) = match cmd.spawn() {
580580
Ok(process) => {

branches/try2/src/compiletest/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn make_new_path(path: &str) -> String {
4141
Some(curr) => {
4242
format!("{}{}{}", path, path_div(), curr)
4343
}
44-
None => path.to_string()
44+
None => path.to_str()
4545
}
4646
}
4747

branches/try2/src/doc/favicon.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">
2+
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400'
3+
rel='stylesheet' type='text/css'>

branches/try2/src/doc/guide-tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ fn stringifier(channel: &DuplexStream<String, uint>) {
465465
let mut value: uint;
466466
loop {
467467
value = channel.recv();
468-
channel.send(value.to_string());
468+
channel.send(value.to_str());
469469
if value == 0 { break; }
470470
}
471471
}
@@ -478,7 +478,7 @@ send strings (the first type parameter) and receive `uint` messages
478478
(the second type parameter). The body itself simply loops, reading
479479
from the channel and then sending its response back. The actual
480480
response itself is simply the stringified version of the received value,
481-
`uint::to_string(value)`.
481+
`uint::to_str(value)`.
482482

483483
Here is the code for the parent task:
484484

@@ -492,7 +492,7 @@ use std::comm::duplex;
492492
# let mut value: uint;
493493
# loop {
494494
# value = channel.recv();
495-
# channel.send(value.to_string());
495+
# channel.send(value.to_str());
496496
# if value == 0u { break; }
497497
# }
498498
# }

0 commit comments

Comments
 (0)