Skip to content

Commit 10797f4

Browse files
committed
---
yaml --- r: 94187 b: refs/heads/try c: 786dea2 h: refs/heads/master i: 94185: 7cc9045 94183: c14ecfe v: v3
1 parent 5dd7d5d commit 10797f4

File tree

146 files changed

+817
-1651
lines changed

Some content is hidden

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

146 files changed

+817
-1651
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: ac4dd9efee9248f4c3235460f3c93acc9932eb5a
5+
refs/heads/try: 786dea207d5b891d37e596e96dd2f84c4cb59f49
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ $(3)/stage$(1)/test/rustdoctest-$(2)$$(X_$(2)): \
394394
$$(RUSTDOC_LIB) $$(RUSTDOC_INPUTS) \
395395
$$(SREQ$(1)_T_$(2)_H_$(3)) \
396396
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBSYNTAX_$(2)) \
397-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC_$(2)) \
398-
$$(SUNDOWN_LIB_$(2))
397+
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC_$(2))
399398
@$$(call E, compile_and_link: $$@)
400399
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test \
401400
-L $$(SUNDOWN_DIR_$(2))

branches/try/src/driver/driver.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
// except according to those terms.
1010

1111
#[cfg(rustpkg)]
12-
extern mod this = "rustpkg";
12+
extern mod this(name = "rustpkg");
1313

1414
#[cfg(rustdoc)]
15-
extern mod this = "rustdoc";
15+
extern mod this(name = "rustdoc");
1616

1717
#[cfg(rustc)]
18-
extern mod this = "rustc";
18+
extern mod this(name = "rustc");
1919

2020
#[cfg(rustdoc_ng)]
21-
extern mod this = "rustdoc_ng";
21+
extern mod this(name = "rustdoc_ng");
2222

2323
fn main() { this::main() }

branches/try/src/etc/combine-tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def scrub(b):
4242
c = open("tmp/run_pass_stage2.rc", "w")
4343
i = 0
4444
c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
45-
c.write("#[pkgid=\"run_pass_stage2#0.1\"];\n")
4645
c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\n")
4746
c.write("#[feature(globs, macro_rules, struct_variant, managed_boxes)];\n")
4847
c.write("#[allow(attribute_usage)];\n")

branches/try/src/libextra/arc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,10 @@ mod tests {
628628
let arc = ~MutexArc::new(false);
629629
let arc2 = ~arc.clone();
630630
let (p,c) = comm::oneshot();
631-
let (c,p) = (Cell::new(c), Cell::new(p));
632-
do task::spawn || {
631+
let c = Cell::new(c);
632+
do task::spawn {
633633
// wait until parent gets in
634-
p.take().recv();
634+
p.recv();
635635
arc2.access_cond(|state, cond| {
636636
*state = true;
637637
cond.signal();

branches/try/src/libextra/future.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#[allow(missing_doc)];
2727

28-
use std::cell::Cell;
2928
use std::comm::{PortOne, oneshot};
3029
use std::util::replace;
3130

@@ -113,9 +112,8 @@ impl<A:Send> Future<A> {
113112
* waiting for the result to be received on the port.
114113
*/
115114

116-
let port = Cell::new(port);
117115
do Future::from_fn {
118-
port.take().recv()
116+
port.recv()
119117
}
120118
}
121119

@@ -141,7 +139,6 @@ impl<A:Send> Future<A> {
141139
mod test {
142140
use future::Future;
143141

144-
use std::cell::Cell;
145142
use std::comm::oneshot;
146143
use std::task;
147144

@@ -199,9 +196,9 @@ mod test {
199196
#[test]
200197
fn test_sendable_future() {
201198
let expected = "schlorf";
202-
let f = Cell::new(do Future::spawn { expected });
199+
let f = do Future::spawn { expected };
203200
do task::spawn {
204-
let mut f = f.take();
201+
let mut f = f;
205202
let actual = f.get();
206203
assert_eq!(actual, expected);
207204
}

branches/try/src/libextra/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Rust extras are part of the standard Rust distribution.
2020
2121
*/
2222

23-
#[pkgid="extra#0.9-pre"];
24-
// NOTE: remove after the next snapshot
2523
#[link(name = "extra",
2624
package_id = "extra",
2725
vers = "0.9-pre",

branches/try/src/libextra/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,15 +872,14 @@ pub fn run_test(force_ignore: bool,
872872
fn run_test_inner(desc: TestDesc,
873873
monitor_ch: SharedChan<MonitorMsg>,
874874
testfn: proc()) {
875-
let testfn_cell = ::std::cell::Cell::new(testfn);
876875
do task::spawn {
877876
let mut task = task::task();
878877
task.name(match desc.name {
879878
DynTestName(ref name) => SendStrOwned(name.clone()),
880879
StaticTestName(name) => SendStrStatic(name),
881880
});
882881
let result_future = task.future_result();
883-
task.spawn(testfn_cell.take());
882+
task.spawn(testfn);
884883

885884
let task_result = result_future.recv();
886885
let test_result = calc_result(&desc, task_result.is_ok());

branches/try/src/libextra/workcache.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use json::ToJson;
1515
use serialize::{Encoder, Encodable, Decoder, Decodable};
1616
use arc::{Arc,RWArc};
1717
use treemap::TreeMap;
18-
use std::cell::Cell;
1918
use std::comm::{PortOne, oneshot};
2019
use std::{str, task};
2120
use std::io;
@@ -430,15 +429,13 @@ impl<'self> Prep<'self> {
430429
debug!("Cache miss!");
431430
let (port, chan) = oneshot();
432431
let blk = bo.take_unwrap();
433-
let chan = Cell::new(chan);
434432

435433
// XXX: What happens if the task fails?
436434
do task::spawn {
437435
let mut exe = Exec {
438436
discovered_inputs: WorkMap::new(),
439437
discovered_outputs: WorkMap::new(),
440438
};
441-
let chan = chan.take();
442439
let v = blk(&mut exe);
443440
chan.send((exe, v));
444441
}

0 commit comments

Comments
 (0)