Skip to content

Commit 1337bec

Browse files
committed
---
yaml --- r: 142979 b: refs/heads/try2 c: a1cd142 h: refs/heads/master i: 142977: c37bbfd 142975: 023901f v: v3
1 parent 09936d4 commit 1337bec

Some content is hidden

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

51 files changed

+611
-484
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 06fec5243b403c91fda4596d81bdab19e5e6eced
8+
refs/heads/try2: a1cd1429fb6f007735a3de792b5ba8ba24cd5328
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -750,18 +750,18 @@ then
750750
cd ${CFG_SRC_DIR}
751751

752752
msg "git: submodule sync"
753-
"${CFG_GIT}" submodule sync
753+
"${CFG_GIT}" submodule --quiet sync
754754

755755
msg "git: submodule update"
756-
"${CFG_GIT}" submodule update --init
756+
"${CFG_GIT}" submodule --quiet update --init
757757
need_ok "git failed"
758758

759759
msg "git: submodule foreach sync"
760-
"${CFG_GIT}" submodule foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
760+
"${CFG_GIT}" submodule --quiet foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
761761
need_ok "git failed"
762762

763763
msg "git: submodule foreach update"
764-
"${CFG_GIT}" submodule update --init --recursive
764+
"${CFG_GIT}" submodule --quiet update --init --recursive
765765
need_ok "git failed"
766766

767767
# NB: this is just for the sake of getting the submodule SHA1 values
@@ -770,9 +770,9 @@ then
770770
"${CFG_GIT}" submodule status --recursive
771771

772772
msg "git: submodule clobber"
773-
"${CFG_GIT}" submodule foreach --recursive git clean -dxf
773+
"${CFG_GIT}" submodule --quiet foreach --recursive git clean -dxf
774774
need_ok "git failed"
775-
"${CFG_GIT}" submodule foreach --recursive git checkout .
775+
"${CFG_GIT}" submodule --quiet foreach --recursive git checkout .
776776
need_ok "git failed"
777777

778778
cd ${CFG_BUILD_DIR}
@@ -921,9 +921,6 @@ do
921921
esac
922922
need_ok "LLVM configure failed"
923923

924-
# Hack the tools Makefile to turn off the clang build
925-
sed -i 's/clang//g' tools/Makefile
926-
927924
cd $CFG_BUILD_DIR
928925
fi
929926

branches/try2/doc/rust.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,41 +1122,6 @@ static bits_n_strings: BitsNStrings<'static> = BitsNStrings {
11221122
};
11231123
~~~~
11241124

1125-
#### Mutable statics
1126-
1127-
If a static item is declared with the ```mut``` keyword, then it is allowed to
1128-
be modified by the program. One of Rust's goals is to make concurrency bugs hard
1129-
to run into, and this is obviously a very large source of race conditions or
1130-
other bugs. For this reason, an ```unsafe``` block is required when either
1131-
reading or writing a mutable static variable. Care should be taken to ensure
1132-
that modifications to a mutable static are safe with respect to other tasks
1133-
running in the same process.
1134-
1135-
Mutable statics are still very useful, however. They can be used with C
1136-
libraries and can also be bound from C libraries (in an ```extern``` block).
1137-
1138-
~~~
1139-
# fn atomic_add(_: &mut uint, _: uint) -> uint { 2 }
1140-
1141-
static mut LEVELS: uint = 0;
1142-
1143-
// This violates the idea of no shared state, and this doesn't internally
1144-
// protect against races, so this function is `unsafe`
1145-
unsafe fn bump_levels_unsafe1() -> uint {
1146-
let ret = LEVELS;
1147-
LEVELS += 1;
1148-
return ret;
1149-
}
1150-
1151-
// Assuming that we have an atomic_add function which returns the old value,
1152-
// this function is "safe" but the meaning of the return value may not be what
1153-
// callers expect, so it's still marked as `unsafe`
1154-
unsafe fn bump_levels_unsafe2() -> uint {
1155-
return atomic_add(&mut LEVELS, 1);
1156-
}
1157-
1158-
~~~
1159-
11601125
### Traits
11611126

11621127
A _trait_ describes a set of method types.

branches/try2/doc/tutorial.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ supported build environments that are most likely to work.
8484
> know.
8585
8686
[bug-3319]: https://github.com/mozilla/rust/issues/3319
87-
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
87+
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
8888

8989
To build from source you will also need the following prerequisite
9090
packages:
@@ -118,6 +118,7 @@ API-documentation tool; `rustpkg`, the Rust package manager;
118118
`rusti`, the Rust REPL; and `rust`, a tool which acts both as a unified
119119
interface for them, and for a few common command line scenarios.
120120

121+
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
121122
[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz
122123
[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe
123124

@@ -409,6 +410,8 @@ println(fmt!("what is this thing: %?", mystery_object));
409410

410411
You can define your own syntax extensions with the macro system. For details, see the [macro tutorial][macros].
411412

413+
[macros]: tutorial-macros.html
414+
412415
# Control structures
413416

414417
## Conditionals
@@ -1514,6 +1517,8 @@ closures, but they also own them: that is, no other code can access
15141517
them. Owned closures are used in concurrent code, particularly
15151518
for spawning [tasks][tasks].
15161519

1520+
[tasks]: tutorial-tasks.html
1521+
15171522
## Closure compatibility
15181523

15191524
Rust closures have a convenient subtyping property: you can pass any kind of
@@ -2538,4 +2543,9 @@ There is further documentation on the [wiki].
25382543
[ffi]: tutorial-ffi.html
25392544

25402545
[wiki]: https://github.com/mozilla/rust/wiki/Docs
2546+
[unit testing]: https://github.com/mozilla/rust/wiki/Doc-unit-testing
2547+
[rustdoc]: https://github.com/mozilla/rust/wiki/Doc-using-rustdoc
2548+
[cargo]: https://github.com/mozilla/rust/wiki/Doc-using-cargo-to-manage-packages
2549+
[attributes]: https://github.com/mozilla/rust/wiki/Doc-attributes
25412550

2551+
[pound-rust]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust

branches/try2/src/compiletest/compiletest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ pub fn test_opts(config: &config) -> test::TestOpts {
230230
logfile: config.logfile.clone(),
231231
run_tests: true,
232232
run_benchmarks: true,
233-
ratchet_metrics: config.ratchet_metrics.clone(),
234-
ratchet_noise_percent: config.ratchet_noise_percent.clone(),
235-
save_metrics: config.save_metrics.clone(),
233+
ratchet_metrics: copy config.ratchet_metrics,
234+
ratchet_noise_percent: copy config.ratchet_noise_percent,
235+
save_metrics: copy config.save_metrics,
236236
}
237237
}
238238

@@ -315,7 +315,7 @@ pub fn make_test_closure(config: &config, testfile: &Path) -> test::TestFn {
315315

316316
pub fn make_metrics_test_closure(config: &config, testfile: &Path) -> test::TestFn {
317317
use std::cell::Cell;
318-
let config = Cell::new((*config).clone());
318+
let config = Cell::new(copy *config);
319319
let testfile = Cell::new(testfile.to_str());
320320
test::DynMetricFn(|mm| { runtest::run_metrics(config.take(), testfile.take(), mm) })
321321
}

branches/try2/src/etc/vim/compiler/rustc.vim

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)