Skip to content

Commit 1a57f28

Browse files
committed
---
yaml --- r: 97503 b: refs/heads/snap-stage3 c: 7b7d7a0 h: refs/heads/master i: 97501: d9317cb 97499: 0671511 97495: 5d85413 97487: 9ba4640 97471: ad92b42 v: v3
1 parent de552c0 commit 1a57f28

File tree

43 files changed

+531
-1023
lines changed

Some content is hidden

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

43 files changed

+531
-1023
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1d40fd4a9507370cf1018d86e51fdfa60787a2b2
4+
refs/heads/snap-stage3: 7b7d7a041a4f64589b63cd4e62267558bb51219b
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/configure

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,10 @@ then
560560
step_msg "on OS X 10.9, forcing use of clang"
561561
CFG_ENABLE_CLANG=1
562562
putvar CFG_ENABLE_CLANG
563-
else
564-
# on OS X, with xcode 5 and newer, certain developers may have
563+
else
564+
# on OS X, with xcode 5 and newer, certain developers may have
565565
# cc, gcc and g++ point to a mixture of clang and gcc
566-
# if so, this will create very strange build errors
566+
# if so, this will create very strange build errors
567567
# this last stanza is to detect some such problems and save the future rust
568568
# contributor some time solving that issue.
569569
# this detection could be generalized to other OSes aside from OS X
@@ -576,8 +576,8 @@ then
576576
# note that for xcode 5, g++ points to clang, not clang++
577577
if !((chk_cc gcc clang && chk_cc g++ clang) ||
578578
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
579-
err "the gcc and g++ in your path point to different compilers.
580-
Check which versions are in your path with cc --version and g++ --version.
579+
err "the gcc and g++ in your path point to different compilers.
580+
Check which versions are in your path with cc --version and g++ --version.
581581
To resolve this problem, either fix your PATH or run configure with --enable-clang"
582582
fi
583583

branches/snap-stage3/doc/guide-macros.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ return result + val;
278278
This solves the indentation problem. But if we have a lot of chained matches
279279
like this, we might prefer to write a single macro invocation. The input
280280
pattern we want is clear:
281-
282281
~~~~
283282
# macro_rules! b(
284283
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
@@ -305,7 +304,6 @@ input patterns:
305304
( binds $( $bind_res:ident ),* )
306305
# => (0))
307306
~~~~
308-
309307
...and:
310308

311309
~~~~

branches/snap-stage3/doc/guide-tasks.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ With `extra::future`, rust has a mechanism for requesting a computation and gett
263263
later.
264264

265265
The basic example below illustrates this.
266-
267266
~~~
268267
# fn make_a_sandwich() {};
269268
fn fib(n: u64) -> u64 {
@@ -284,7 +283,6 @@ the future needs to be mutable so that it can save the result for next time `get
284283

285284
Here is another example showing how futures allow you to background computations. The workload will
286285
be distributed on the available cores.
287-
288286
~~~
289287
# use std::vec;
290288
fn partial_sum(start: uint) -> f64 {
@@ -319,7 +317,6 @@ acts as a reference to the shared data and only this reference is shared and clo
319317

320318
Here is a small example showing how to use Arcs. We wish to run concurrently several computations on
321319
a single large vector of floats. Each task needs the full vector to perform its duty.
322-
323320
~~~
324321
# use std::vec;
325322
# use std::rand;
@@ -351,17 +348,14 @@ fn main() {
351348
The function `pnorm` performs a simple computation on the vector (it computes the sum of its items
352349
at the power given as argument and takes the inverse power of this value). The Arc on the vector is
353350
created by the line
354-
355351
~~~
356352
# use extra::arc::Arc;
357353
# use std::vec;
358354
# use std::rand;
359355
# let numbers = vec::from_fn(1000000, |_| rand::random::<f64>());
360356
let numbers_arc=Arc::new(numbers);
361357
~~~
362-
363358
and a clone of it is sent to each task
364-
365359
~~~
366360
# use extra::arc::Arc;
367361
# use std::vec;
@@ -371,11 +365,9 @@ and a clone of it is sent to each task
371365
# let (port, chan) = Chan::new();
372366
chan.send(numbers_arc.clone());
373367
~~~
374-
375368
copying only the wrapper and not its contents.
376369

377370
Each task recovers the underlying data by
378-
379371
~~~
380372
# use extra::arc::Arc;
381373
# use std::vec;
@@ -387,7 +379,6 @@ Each task recovers the underlying data by
387379
# let local_arc : Arc<~[f64]> = port.recv();
388380
let task_numbers = local_arc.get();
389381
~~~
390-
391382
and can use it as if it were local.
392383

393384
The `arc` module also implements Arcs around mutable data that are not covered here.

branches/snap-stage3/doc/rust.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ If a sequence of such redirections form a cycle or cannot be resolved unambiguou
845845
they represent a compile-time error.
846846

847847
An example of re-exporting:
848-
849848
~~~~
850849
# fn main() { }
851850
mod quux {
@@ -869,7 +868,6 @@ All rules regarding accessing declared modules in `use` declarations applies to
869868
and `extern mod` declarations.
870869

871870
An example of what will and will not work for `use` items:
872-
873871
~~~~
874872
# #[allow(unused_imports)];
875873
use foo::extra; // good: foo is at the root of the crate
@@ -1186,7 +1184,6 @@ a = Cat;
11861184
~~~~
11871185

11881186
Enumeration constructors can have either named or unnamed fields:
1189-
11901187
~~~~
11911188
enum Animal {
11921189
Dog (~str, f64),

branches/snap-stage3/doc/tutorial.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,15 +2790,13 @@ For example, if we move the `animals` module above into its own file...
27902790
mod plants;
27912791
mod animals;
27922792
~~~
2793-
27942793
~~~ {.ignore}
27952794
// src/animals.rs or src/animals/mod.rs
27962795
mod fish;
27972796
mod mammals {
27982797
mod humans;
27992798
}
28002799
~~~
2801-
28022800
...then the source files of `mod animals`'s submodules can
28032801
either be placed right next to that of its parents, or in a subdirectory if `animals` source file is:
28042802

@@ -2961,7 +2959,6 @@ pub fn bar() { println("Baz!"); }
29612959
There also exist two short forms for importing multiple names at once:
29622960

29632961
1. Explicit mention multiple names as the last element of an `use` path:
2964-
29652962
~~~
29662963
use farm::{chicken, cow};
29672964
# mod farm {
@@ -2972,7 +2969,6 @@ use farm::{chicken, cow};
29722969
~~~
29732970

29742971
2. Import everything in a module with a wildcard:
2975-
29762972
~~~
29772973
use farm::*;
29782974
# mod farm {

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#[allow(non_camel_case_types)];
1414
#[deny(warnings)];
1515

16+
#[cfg(stage0)] extern mod green;
1617
extern mod extra;
1718

1819
use std::os;

branches/snap-stage3/src/driver/driver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[cfg(stage0)] extern mod green;
12+
1113
#[cfg(rustpkg)]
1214
extern mod this = "rustpkg";
1315

branches/snap-stage3/src/libextra/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl SmallBitv {
8080
self.bits |= 1<<i;
8181
}
8282
else {
83-
self.bits &= !(1<<i);
83+
self.bits &= !(1<<i as uint);
8484
}
8585
}
8686

0 commit comments

Comments
 (0)