Skip to content

Commit d1edb95

Browse files
committed
---
yaml --- r: 106346 b: refs/heads/auto c: f1739b1 h: refs/heads/master v: v3
1 parent ab8e33a commit d1edb95

36 files changed

+6491
-1430
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 5a68892507cdd42fdf6f1f645d6e38f6f5be67a4
16+
refs/heads/auto: f1739b14a1346419a4598339aee32aab07e0d12e
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ include config.mk
177177

178178
# Just a few macros used everywhere
179179
include $(CFG_SRC_DIR)mk/util.mk
180-
# Reconfiguring when the makefiles or submodules change
181-
include $(CFG_SRC_DIR)mk/reconfig.mk
182180
# All crates and their dependencies
183181
include $(CFG_SRC_DIR)mk/crates.mk
182+
# Reconfiguring when the makefiles or submodules change
183+
include $(CFG_SRC_DIR)mk/reconfig.mk
184184
# Various bits of setup, common macros, and top-level rules
185185
include $(CFG_SRC_DIR)mk/main.mk
186186
# C and assembly components that are not LLVM

branches/auto/mk/crates.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ COMPILER_DOC_CRATES := rustc syntax
105105
# $(1) is the crate to generate variables for
106106
define RUST_CRATE
107107
CRATEFILE_$(1) := $$(S)src/lib$(1)/lib.rs
108-
RSINPUTS_$(1) := $$(call rwildcard,$(S)src/lib$(1)/,*.rs)
108+
RSINPUTS_$(1) := $$(wildcard $$(addprefix $(S)src/lib$(1), \
109+
*.rs */*.rs */*/*.rs */*/*/*.rs))
109110
RUST_DEPS_$(1) := $$(filter-out native:%,$$(DEPS_$(1)))
110111
NATIVE_DEPS_$(1) := $$(patsubst native:%,%,$$(filter native:%,$$(DEPS_$(1))))
111112
endef
@@ -116,7 +117,8 @@ $(foreach crate,$(CRATES),$(eval $(call RUST_CRATE,$(crate))))
116117
#
117118
# $(1) is the crate to generate variables for
118119
define RUST_TOOL
119-
TOOL_INPUTS_$(1) := $$(call rwildcard,$$(dir $$(TOOL_SOURCE_$(1))),*.rs)
120+
TOOL_INPUTS_$(1) := $$(wildcard $$(addprefix $$(dir $$(TOOL_SOURCE_$(1))), \
121+
*.rs */*.rs */*/*.rs */*/*/*.rs))
120122
endef
121123

122124
$(foreach crate,$(TOOLS),$(eval $(call RUST_TOOL,$(crate))))

branches/auto/mk/install.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
install: dist-install-dir-$(CFG_BUILD)
1313
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"
1414
# Remove tmp files while we can because they may have been created under sudo
15-
$(Q)rm -R tmp/dist/$(PKG_NAME)-$(CFG_BUILD)
15+
$(Q)rm -R tmp/dist/$(PKG_NAME)-$(CFG_BUILD/
1616

1717
uninstall: dist-install-dir-$(CFG_BUILD)
1818
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"

branches/auto/mk/rt.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ $$(LIBUV_DIR_$(1))/Release/libuv.a: $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)) \
215215
BUILDTYPE=Release \
216216
NO_LOAD="$$(LIBUV_NO_LOAD)" \
217217
V=$$(VERBOSE)
218-
$$(Q)touch $$@
219218

220219
endif
221220

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ impl Input {
168168
}
169169
}
170170

171+
// FIXME: remove unwrap_ after snapshot
172+
#[cfg(stage0)]
173+
fn unwrap_<T>(t: T) -> T {
174+
t
175+
}
176+
177+
#[cfg(not(stage0))]
178+
fn unwrap_<T, E>(r: Result<T, E>) -> T {
179+
r.unwrap()
180+
}
181+
182+
171183
pub fn phase_1_parse_input(sess: &Session, cfg: ast::CrateConfig, input: &Input)
172184
-> ast::Crate {
173185
let krate = time(sess.time_passes(), "parsing", (), |_| {
@@ -187,7 +199,8 @@ pub fn phase_1_parse_input(sess: &Session, cfg: ast::CrateConfig, input: &Input)
187199
if sess.opts.debugging_opts & session::AST_JSON_NOEXPAND != 0 {
188200
let mut stdout = io::BufferedWriter::new(io::stdout());
189201
let mut json = json::PrettyEncoder::new(&mut stdout);
190-
krate.encode(&mut json);
202+
// unwrapping so IoError isn't ignored
203+
unwrap_(krate.encode(&mut json));
191204
}
192205

193206
if sess.show_span() {
@@ -262,7 +275,8 @@ pub fn phase_2_configure_and_expand(sess: &Session,
262275
if sess.opts.debugging_opts & session::AST_JSON != 0 {
263276
let mut stdout = io::BufferedWriter::new(io::stdout());
264277
let mut json = json::PrettyEncoder::new(&mut stdout);
265-
krate.encode(&mut json);
278+
// unwrapping so IoError isn't ignored
279+
unwrap_(krate.encode(&mut json));
266280
}
267281

268282
(krate, map)

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ use syntax::crateid::CrateId;
4747

4848
pub type Cmd = @crate_metadata;
4949

50+
// FIXME: remove unwrap_ after a snapshot
51+
#[cfg(stage0)]
52+
fn unwrap_<T>(t: T) -> T {
53+
t
54+
}
55+
56+
#[cfg(not(stage0))]
57+
fn unwrap_<T, E>(r: Result<T, E>) -> T {
58+
r.unwrap()
59+
}
60+
5061
// A function that takes a def_id relative to the crate being searched and
5162
// returns a def_id relative to the compilation environment, i.e. if we hit a
5263
// def_id for an item defined in another crate, somebody needs to figure out
@@ -59,15 +70,15 @@ fn lookup_hash<'a>(d: ebml::Doc<'a>, eq_fn: |&[u8]| -> bool,
5970
let table = reader::get_doc(index, tag_index_table);
6071
let hash_pos = table.start + (hash % 256 * 4) as uint;
6172
let pos = u64_from_be_bytes(d.data, hash_pos, 4) as uint;
62-
let tagged_doc = reader::doc_at(d.data, pos);
73+
let tagged_doc = unwrap_(reader::doc_at(d.data, pos));
6374

6475
let belt = tag_index_buckets_bucket_elt;
6576

6677
let mut ret = None;
6778
reader::tagged_docs(tagged_doc.doc, belt, |elt| {
6879
let pos = u64_from_be_bytes(elt.data, elt.start, 4) as uint;
6980
if eq_fn(elt.data.slice(elt.start + 4, elt.end)) {
70-
ret = Some(reader::doc_at(d.data, pos).doc);
81+
ret = Some(unwrap_(reader::doc_at(d.data, pos)).doc);
7182
false
7283
} else {
7384
true
@@ -853,7 +864,7 @@ pub fn get_item_variances(cdata: Cmd, id: ast::NodeId) -> ty::ItemVariances {
853864
let item_doc = lookup_item(id, data);
854865
let variance_doc = reader::get_doc(item_doc, tag_item_variances);
855866
let mut decoder = reader::Decoder(variance_doc);
856-
Decodable::decode(&mut decoder)
867+
unwrap_(Decodable::decode(&mut decoder))
857868
}
858869

859870
pub fn get_provided_trait_methods(intr: @IdentInterner, cdata: Cmd,

0 commit comments

Comments
 (0)