Skip to content

Commit 05534bc

Browse files
committed
---
yaml --- r: 91891 b: refs/heads/auto c: cd7a9b7 h: refs/heads/master i: 91889: 3ab667b 91887: a6e77e9 v: v3
1 parent 623bd6e commit 05534bc

File tree

9 files changed

+21
-53
lines changed

9 files changed

+21
-53
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: 679a2c042fb2541f55f1192ca97672907b258337
16+
refs/heads/auto: cd7a9b723484115d447f68729f5074ea7cae409c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/docs.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,10 @@ RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
215215
# $(1) - The crate name (std/extra)
216216
# $(2) - The crate file
217217
# $(3) - The relevant host build triple (to depend on libstd)
218-
#
219-
# Passes --cfg stage2 to rustdoc because it uses the stage2 librustc.
220218
define libdoc
221219
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
222220
@$$(call E, rustdoc: $$@)
223-
$(Q)$(RUSTDOC) --cfg stage2 $(2)
221+
$(Q)$(RUSTDOC) $(2)
224222

225223
DOCS += doc/$(1)/index.html
226224
endef

branches/auto/src/libextra/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ mod test {
260260
261261
#[test]
262262
fn test_to_base64_line_break() {
263-
assert!(![0u8, ..1000].to_base64(Config {line_length: None, ..STANDARD})
263+
assert!(![0u8, 1000].to_base64(Config {line_length: None, ..STANDARD})
264264
.contains("\r\n"));
265265
assert_eq!("foobar".as_bytes().to_base64(Config {line_length: Some(4),
266266
..STANDARD}),

branches/auto/src/librustc/middle/moves.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,6 @@ impl VisitContext {
459459
}
460460

461461
ExprMatch(discr, ref arms) => {
462-
// We must do this first so that `arms_have_by_move_bindings`
463-
// below knows which bindings are moves.
464462
for arm in arms.iter() {
465463
self.consume_arm(arm);
466464
}
@@ -657,27 +655,6 @@ impl VisitContext {
657655
self.consume_expr(arg_expr)
658656
}
659657

660-
pub fn arms_have_by_move_bindings(&mut self,
661-
moves_map: MovesMap,
662-
arms: &[Arm])
663-
-> Option<@Pat> {
664-
let mut ret = None;
665-
for arm in arms.iter() {
666-
for &pat in arm.pats.iter() {
667-
let cont = do ast_util::walk_pat(pat) |p| {
668-
if moves_map.contains(&p.id) {
669-
ret = Some(p);
670-
false
671-
} else {
672-
true
673-
}
674-
};
675-
if !cont { return ret }
676-
}
677-
}
678-
ret
679-
}
680-
681658
pub fn compute_captures(&mut self, fn_expr_id: NodeId) -> @[CaptureVar] {
682659
debug!("compute_capture_vars(fn_expr_id={:?})", fn_expr_id);
683660
let _indenter = indenter();

branches/auto/src/librustdoc/core.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct CrateAnalysis {
3737

3838
/// Parses, resolves, and typechecks the given crate
3939
fn get_ast_and_resolve(cpath: &Path,
40-
libs: HashSet<Path>, cfgs: ~[~str]) -> (DocContext, CrateAnalysis) {
40+
libs: HashSet<Path>) -> (DocContext, CrateAnalysis) {
4141
use syntax::codemap::dummy_spanned;
4242
use rustc::driver::driver::{file_input, build_configuration,
4343
phase_1_parse_input,
@@ -66,9 +66,7 @@ fn get_ast_and_resolve(cpath: &Path,
6666
span_diagnostic_handler);
6767

6868
let mut cfg = build_configuration(sess);
69-
for cfg_ in cfgs.move_iter() {
70-
cfg.push(@dummy_spanned(ast::MetaWord(cfg_.to_managed())));
71-
}
69+
cfg.push(@dummy_spanned(ast::MetaWord(@"stage2")));
7270

7371
let mut crate = phase_1_parse_input(sess, cfg.clone(), &input);
7472
crate = phase_2_configure_and_expand(sess, cfg, crate);
@@ -81,8 +79,8 @@ fn get_ast_and_resolve(cpath: &Path,
8179
CrateAnalysis { exported_items: exported_items });
8280
}
8381

84-
pub fn run_core (libs: HashSet<Path>, cfgs: ~[~str], path: &Path) -> (clean::Crate, CrateAnalysis) {
85-
let (ctxt, analysis) = get_ast_and_resolve(path, libs, cfgs);
82+
pub fn run_core (libs: HashSet<Path>, path: &Path) -> (clean::Crate, CrateAnalysis) {
83+
let (ctxt, analysis) = get_ast_and_resolve(path, libs);
8684
let ctxt = @ctxt;
8785
debug!("defmap:");
8886
for (k, v) in ctxt.tycx.def_map.iter() {

branches/auto/src/librustdoc/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ pub fn opts() -> ~[groups::OptGroup] {
9696
optopt("o", "output", "where to place the output", "PATH"),
9797
optmulti("L", "library-path", "directory to add to crate search path",
9898
"DIR"),
99-
optmulti("", "cfg", "pass a --cfg to rustc", ""),
10099
optmulti("", "plugin-path", "directory to load plugins from", "DIR"),
101100
optmulti("", "passes", "space separated list of passes to also run, a \
102101
value of `list` will print available passes",
@@ -195,12 +194,11 @@ fn rust_input(cratefile: &str, matches: &getopts::Matches) -> Output {
195194

196195
// First, parse the crate and extract all relevant information.
197196
let libs = Cell::new(matches.opt_strs("L").map(|s| Path::new(s.as_slice())));
198-
let cfgs = Cell::new(matches.opt_strs("cfg"));
199197
let cr = Cell::new(Path::new(cratefile));
200198
info!("starting to run rustc");
201199
let (crate, analysis) = do std::task::try {
202200
let cr = cr.take();
203-
core::run_core(libs.take().move_iter().collect(), cfgs.take(), &cr)
201+
core::run_core(libs.take().move_iter().collect(), &cr)
204202
}.unwrap();
205203
info!("finished with rustc");
206204
local_data::set(analysiskey, analysis);

branches/auto/src/librustuv/stream.rs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,22 @@ impl StreamWatcher {
6969
// uv_read_stop function
7070
let _f = ForbidUnwind::new("stream read");
7171

72-
let mut rcx = ReadContext {
73-
buf: Some(slice_to_uv_buf(buf)),
74-
result: 0,
75-
task: None,
76-
};
77-
// When reading a TTY stream on windows, libuv will invoke alloc_cb
78-
// immediately as part of the call to alloc_cb. What this means is that
79-
// we must be ready for this to happen (by setting the data in the uv
80-
// handle). In theory this otherwise doesn't need to happen until after
81-
// the read is succesfully started.
82-
unsafe {
83-
uvll::set_data_for_uv_handle(self.handle, &rcx)
84-
}
85-
8672
// Send off the read request, but don't block until we're sure that the
8773
// read request is queued.
8874
match unsafe {
8975
uvll::uv_read_start(self.handle, alloc_cb, read_cb)
9076
} {
9177
0 => {
92-
wait_until_woken_after(&mut rcx.task, || {});
78+
let mut rcx = ReadContext {
79+
buf: Some(slice_to_uv_buf(buf)),
80+
result: 0,
81+
task: None,
82+
};
83+
do wait_until_woken_after(&mut rcx.task) {
84+
unsafe {
85+
uvll::set_data_for_uv_handle(self.handle, &rcx)
86+
}
87+
}
9388
match rcx.result {
9489
n if n < 0 => Err(UvError(n as c_int)),
9590
n => Ok(n as uint),

branches/auto/src/libstd/hashmap.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
//! The tables use a keyed hash with new random keys generated for each container, so the ordering
1414
//! of a set of keys in a hash table is randomized.
1515
16+
#[mutable_doc];
17+
1618
use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
1719
use clone::Clone;
1820
use cmp::{Eq, Equiv};

branches/auto/src/libstd/rt/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ weedy but not remembered; terrible spires and monoliths of lands that men never
116116
knew were lands...",
117117
4 => "
118118
There was a night when winds from unknown spaces whirled us irresistibly into
119-
limitless vacuum beyond all thought and entity. Perceptions of the most
119+
limitless vacum beyond all thought and entity. Perceptions of the most
120120
maddeningly untransmissible sort thronged upon us; perceptions of infinity
121121
which at the time convulsed us with joy, yet which are now partly lost to my
122122
memory and partly incapable of presentation to others.",

0 commit comments

Comments
 (0)