Skip to content

Commit 1a2b192

Browse files
committed
---
yaml --- r: 39662 b: refs/heads/incoming c: d91b2d4 h: refs/heads/master v: v3
1 parent e026303 commit 1a2b192

File tree

11 files changed

+29
-33
lines changed

11 files changed

+29
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 486217d7a2779d35c1177c7b1b7e96c1e5d30441
9+
refs/heads/incoming: d91b2d428b6c431082b68c788e3636838737fdc5
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Patrik Kårlin <[email protected]>
108108
Paul Stansifer <[email protected]>
109109
Paul Woolcock <[email protected]>
110110
Peter Hull <[email protected]>
111+
Peter Williams <[email protected]>
111112
Philipp Brüschweiler <[email protected]>
112113
Rafael Ávila de Espíndola <[email protected]>
113114
Ralph Giles <[email protected]>

branches/incoming/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ else
152152

153153
doc/rust.g: rust.md $(S)src/etc/extract_grammar.py
154154
@$(call E, extract_grammar: $@)
155-
$(Q)$(CFG_PYTHON) $(S)src/etc/extract_grammar.py $< >$@
155+
$(Q)$(S)src/etc/extract_grammar.py $< >$@
156156

157157
verify-grammar: doc/rust.g
158158
@$(call E, LLnextgen: $<)

branches/incoming/mk/snap.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ define DEF_SNAP_FOR_STAGE_H
1414

1515
ifdef CFG_INSTALL_SNAP
1616
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
17-
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2) install
17+
$(S)src/etc/make-snapshot.py stage$(1) $(2) install
1818
else
1919
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
20-
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
20+
$(S)src/etc/make-snapshot.py stage$(1) $(2)
2121
endif
2222

2323
endef
@@ -30,4 +30,4 @@ snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
3030

3131
snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
3232

33-
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)
33+
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)

branches/incoming/mk/stage0.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X): \
1111
ifdef CFG_ENABLE_LOCAL_RUST
1212
$(Q)$(S)src/etc/local_stage0.sh $(CFG_HOST_TRIPLE) $(CFG_LOCAL_RUST_ROOT)
1313
else
14-
$(Q)$(CFG_PYTHON) $(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
14+
$(Q)$(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
1515
ifdef CFG_ENABLE_PAX_FLAGS
1616
@$(call E, apply PaX flags: $@)
1717
@"$(CFG_PAXCTL)" -cm "$@"

branches/incoming/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ tmp/$(FT).rc tmp/$(FT_DRIVER).rs: \
701701
$(RPASS_TESTS) \
702702
$(S)src/etc/combine-tests.py
703703
@$(call E, check: building combined stage2 test runner)
704-
$(Q)$(CFG_PYTHON) $(S)src/etc/combine-tests.py
704+
$(Q)$(S)src/etc/combine-tests.py
705705

706706
define DEF_CHECK_FAST_FOR_T_H
707707
# $(1) unused

branches/incoming/src/etc/sugarise-doc-comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/python
22

33
#
44
# this script attempts to turn doc comment attributes (#[doc = "..."])

branches/incoming/src/libcore/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#[lang="drop"]
1717
pub trait Drop {
18-
fn finalize(&self); // XXX: Rename to "drop"? --pcwalton
18+
fn finalize(&self); // FIXME(#4332): Rename to "drop"? --pcwalton
1919
}
2020

2121
#[lang="add"]

branches/incoming/src/librustdoc/markdown_pass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pub fn header_kind(+doc: doc::ItemTag) -> ~str {
235235
~"Enum"
236236
}
237237
doc::TraitTag(_) => {
238-
~"Interface"
238+
~"Trait"
239239
}
240240
doc::ImplTag(_) => {
241241
~"Implementation"
@@ -724,7 +724,7 @@ fn write_method(ctxt: &Ctxt, +doc: doc::MethodDoc) {
724724
#[test]
725725
fn should_write_trait_header() {
726726
let markdown = test::render(~"trait i { fn a(); }");
727-
assert str::contains(markdown, ~"## Interface `i`");
727+
assert str::contains(markdown, ~"## Trait `i`");
728728
}
729729

730730
#[test]

branches/incoming/src/libstd/sha1.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ use core::vec;
3737
/// The SHA-1 interface
3838
trait Sha1 {
3939
/// Provide message input as bytes
40-
fn input((&[u8]));
40+
fn input(&[const u8]);
4141
/// Provide message input as string
42-
fn input_str((&str));
42+
fn input_str(&str);
4343
/**
4444
* Read the digest as a vector of 20 bytes. After calling this no further
4545
* input may be provided until reset is called.
@@ -75,9 +75,9 @@ pub fn sha1() -> Sha1 {
7575
mut computed: bool,
7676
work_buf: @~[mut u32]};
7777

78-
fn add_input(st: &Sha1State, msg: &[u8]) {
78+
fn add_input(st: &Sha1State, msg: &[const u8]) {
7979
assert (!st.computed);
80-
for vec::each(msg) |element| {
80+
for vec::each_const(msg) |element| {
8181
st.msg_block[st.msg_block_idx] = *element;
8282
st.msg_block_idx += 1u;
8383
st.len_low += 8u32;
@@ -243,7 +243,7 @@ pub fn sha1() -> Sha1 {
243243
self.h[4] = 0xC3D2E1F0u32;
244244
self.computed = false;
245245
}
246-
fn input(msg: &[u8]) { add_input(&self, msg); }
246+
fn input(msg: &[const u8]) { add_input(&self, msg); }
247247
fn input_str(msg: &str) {
248248
let bs = str::to_bytes(msg);
249249
add_input(&self, bs);

branches/incoming/src/test/bench/shootout-mandelbrot.rs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn fillbyte(x: cmplx, incr: f64) -> u8 {
8383
rv
8484
}
8585

86-
fn chanmb(i: uint, size: uint, ch: oldcomm::Chan<Line>) -> ()
86+
fn chanmb(i: uint, size: uint) -> Line
8787
{
8888
let mut crv = ~[];
8989
let incr = 2f64/(size as f64);
@@ -93,27 +93,24 @@ fn chanmb(i: uint, size: uint, ch: oldcomm::Chan<Line>) -> ()
9393
let x = cmplx {re: xincr*(j as f64) - 1.5f64, im: y};
9494
crv.push(fillbyte(x, incr));
9595
};
96-
oldcomm::send(ch, Line {i:i, b: move crv});
96+
Line {i:i, b:crv}
9797
}
9898

99-
type devnull = {dn: int};
99+
struct Devnull();
100100

101-
impl devnull: io::Writer {
101+
impl Devnull: io::Writer {
102102
fn write(&self, _b: &[const u8]) {}
103103
fn seek(&self, _i: int, _s: io::SeekStyle) {}
104104
fn tell(&self) -> uint {0_u}
105105
fn flush(&self) -> int {0}
106106
fn get_type(&self) -> io::WriterType { io::File }
107107
}
108108

109-
fn writer(path: ~str, writech: oldcomm::Chan<oldcomm::Chan<Line>>, size: uint)
109+
fn writer(path: ~str, pport: pipes::Port<Line>, size: uint)
110110
{
111-
let p: oldcomm::Port<Line> = oldcomm::Port();
112-
let ch = oldcomm::Chan(&p);
113-
oldcomm::send(writech, ch);
114111
let cout: io::Writer = match path {
115112
~"" => {
116-
{dn: 0} as io::Writer
113+
Devnull as io::Writer
117114
}
118115
~"-" => {
119116
io::stdout()
@@ -130,7 +127,7 @@ fn writer(path: ~str, writech: oldcomm::Chan<oldcomm::Chan<Line>>, size: uint)
130127
let mut done = 0_u;
131128
let mut i = 0_u;
132129
while i < size {
133-
let aline = oldcomm::recv(p);
130+
let aline = pport.recv();
134131
if aline.i == done {
135132
debug!("W %u", aline.i);
136133
cout.write(aline.b);
@@ -171,13 +168,11 @@ fn main() {
171168
let size = if vec::len(args) < 2_u { 80_u }
172169
else { uint::from_str(args[1]).get() };
173170

174-
let writep = oldcomm::Port();
175-
let writech = oldcomm::Chan(&writep);
176-
do task::spawn |move path| {
177-
writer(copy path, writech, size);
178-
};
179-
let ch = oldcomm::recv(writep);
171+
let (pport, pchan) = pipes::stream();
172+
let pchan = pipes::SharedChan(pchan);
180173
for uint::range(0_u, size) |j| {
181-
do task::spawn { chanmb(j, size, ch) };
174+
let cchan = pchan.clone();
175+
do task::spawn |move cchan| { cchan.send(chanmb(j, size)) };
182176
};
177+
writer(path, pport, size);
183178
}

0 commit comments

Comments
 (0)