Skip to content

Commit be193b6

Browse files
committed
---
yaml --- r: 93867 b: refs/heads/try c: 07e21c3 h: refs/heads/master i: 93865: 5c66968 93863: 7db4fb0 v: v3
1 parent 09c0b16 commit be193b6

File tree

7 files changed

+18
-31
lines changed

7 files changed

+18
-31
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: f1bec46e15c245b9e9f5c0cf64bf2ac6a1882066
5+
refs/heads/try: 07e21c3c8c49918e3909dded55813abbad240c4e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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/try/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/try/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/try/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/try/src/libstd/hashmap.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
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-
1816
use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
1917
use clone::Clone;
2018
use cmp::{Eq, Equiv};

0 commit comments

Comments
 (0)