Skip to content

Commit d41fc48

Browse files
committed
---
yaml --- r: 136682 b: refs/heads/dist-snap c: 03b96d1 h: refs/heads/master v: v3
1 parent 481473f commit d41fc48

File tree

169 files changed

+5615
-5932
lines changed

Some content is hidden

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

169 files changed

+5615
-5932
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 189b7332968972f34cdbbbd9b62d97ababf53059
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 58413c09cd52ea4005d6ea7733ba1fb3a8f36589
9+
refs/heads/dist-snap: 03b96d1ab6d9e35e35b876428f4069bee2c19648
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ If you're just reporting a bug, please see:
44

55
http://doc.rust-lang.org/complement-bugreport.html
66

7-
## Submitting an issue
8-
9-
Please submit issues here for bug reports or implementation details. For feature
10-
requests, language changes, or major changes to the libraries, please submit an
11-
issue against the [RFCs repository](https://github.com/rust-lang/rfcs).
12-
137
## Pull request procedure
148

159
Pull requests should be targeted at Rust's `master` branch.

branches/dist-snap/mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
3030
guide-runtime complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq rust \
32-
rustdoc guide-unsafe guide-strings reference
32+
rustdoc guide-unsafe guide-strings
3333

34-
PDF_DOCS := guide reference
34+
PDF_DOCS := guide rust
3535

3636
RUSTDOC_DEPS_rust := doc/full-toc.inc
3737
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc

branches/dist-snap/mk/rt.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ LIBUV_CFLAGS_$(1) := $(subst -Werror,,$(CFG_GCCISH_CFLAGS_$(1)))
203203

204204
$$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
205205
(cd $(S)src/libuv/ && \
206-
CC="$$(CC_$(1))" \
207-
CXX="$$(CXX_$(1))" \
208-
AR="$$(AR_$(1))" \
209206
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
210207
-D ninja \
211208
-DOS=$$(LIBUV_OSTYPE_$(1)) \
@@ -228,9 +225,6 @@ else ifeq ($(OSTYPE_$(1)), apple-ios) # iOS
228225
$$(LIBUV_XCODEPROJ_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
229226
cp -rf $(S)src/libuv/ $$(LIBUV_BUILD_DIR_$(1))
230227
(cd $$(LIBUV_BUILD_DIR_$(1)) && \
231-
CC="$$(CC_$(1))" \
232-
CXX="$$(CXX_$(1))" \
233-
AR="$$(AR_$(1))" \
234228
$$(CFG_PYTHON) ./gyp_uv.py -f xcode \
235229
-D ninja \
236230
-R libuv)

branches/dist-snap/mk/tests.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@ ifdef VERBOSE
6060
CTEST_TESTARGS += --verbose
6161
endif
6262

63-
# Setting locale ensures that gdb's output remains consistent.
64-
# This prevents tests from failing with some locales (fixes #17423).
65-
export LC_ALL=C
66-
6763
# If we're running perf then set this environment variable
6864
# to put the benchmarks into 'hard mode'
6965
ifeq ($(MAKECMDGOALS),perf)
70-
export RUST_BENCH=1
66+
RUST_BENCH=1
67+
export RUST_BENCH
7168
endif
7269

7370
TEST_LOG_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log

branches/dist-snap/src/compiletest/runtest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
444444
"-nx".to_string(),
445445
format!("-command={}", debugger_script.as_str().unwrap()));
446446

447-
let mut gdb_path = tool_path;
448-
gdb_path.push_str("/bin/arm-linux-androideabi-gdb");
447+
let gdb_path = tool_path.append("/bin/arm-linux-androideabi-gdb");
449448
let procsrv::Result {
450449
out,
451450
err,

branches/dist-snap/src/doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To generate an HTML version of a doc from Markdown manually, you can do
3030
something like:
3131

3232
~~~~
33-
pandoc --from=markdown --to=html5 --number-sections -o reference.html reference.md
33+
pandoc --from=markdown --to=html5 --number-sections -o rust.html rust.md
3434
~~~~
3535

3636
(rust.md being the Rust Reference Manual.)

branches/dist-snap/src/doc/guide-unsafe.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ pub extern fn dot_product(a: *const u32, a_len: u32,
573573
return ret;
574574
}
575575
576-
#[lang = "fail_fmt"]
577-
extern fn fail_fmt(args: &core::fmt::Arguments,
576+
#[lang = "begin_unwind"]
577+
extern fn begin_unwind(args: &core::fmt::Arguments,
578578
file: &str,
579579
line: uint) -> ! {
580580
loop {}
@@ -587,8 +587,8 @@ extern fn fail_fmt(args: &core::fmt::Arguments,
587587
```
588588

589589
Note that there is one extra lang item here which differs from the examples
590-
above, `fail_fmt`. This must be defined by consumers of libcore because the
591-
core library declares failure, but it does not define it. The `fail_fmt`
590+
above, `begin_unwind`. This must be defined by consumers of libcore because the
591+
core library declares failure, but it does not define it. The `begin_unwind`
592592
lang item is this crate's definition of failure, and it must be guaranteed to
593593
never return.
594594

@@ -706,7 +706,7 @@ Other features provided by lang items include:
706706
`==`, `<`, dereferencing (`*`) and `+` (etc.) operators are all
707707
marked with lang items; those specific four are `eq`, `ord`,
708708
`deref`, and `add` respectively.
709-
- stack unwinding and general failure; the `eh_personality`, `fail`
709+
- stack unwinding and general failure; the `eh_personality`, `fail_`
710710
and `fail_bounds_checks` lang items.
711711
- the traits in `std::kinds` used to indicate types that satisfy
712712
various kinds; lang items `send`, `sync` and `copy`.

branches/dist-snap/src/doc/guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,10 +2151,14 @@ In this case, we say `x` is a `uint` explicitly, so Rust is able to properly
21512151
tell `random()` what to generate. In a similar fashion, both of these work:
21522152

21532153
```{rust,ignore}
2154-
let input_num = from_str::<uint>("5");
2154+
let input_num = from_str::<Option<uint>>("5");
21552155
let input_num: Option<uint> = from_str("5");
21562156
```
21572157

2158+
In this case, I happen to prefer the latter, and in the `random()` case, I prefer
2159+
the former. I think the nested `<>`s make the first option especially ugly and
2160+
a bit harder to read.
2161+
21582162
Anyway, with us now converting our input to a number, our code looks like this:
21592163

21602164
```{rust,ignore}

branches/dist-snap/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ development of Rust itself is discussed.
4646
# Specification
4747

4848
Rust does not have an exact specification, but an effort to describe as much of
49-
the language in as much detail as possible is in [the reference](reference.html).
49+
the language in as much detail as possible is in [the manual](rust.html).
5050

5151
# Guides
5252

branches/dist-snap/src/doc/intro.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ Here's some code:
300300
use std::sync::Arc;
301301
302302
fn main() {
303-
let numbers = Arc::new(vec![1i, 2i, 3i]);
303+
let numbers = vec![1i, 2i, 3i];
304+
let numbers = Arc::new(numbers);
304305
305306
for num in range(0u, 3) {
306307
let (tx, rx) = channel();
@@ -345,7 +346,8 @@ and modify it to mutate the shared state:
345346
use std::sync::{Arc, Mutex};
346347
347348
fn main() {
348-
let numbers_lock = Arc::new(Mutex::new(vec![1i, 2i, 3i]));
349+
let numbers = vec![1i, 2i, 3i];
350+
let numbers_lock = Arc::new(Mutex::new(numbers));
349351
350352
for num in range(0u, 3) {
351353
let (tx, rx) = channel();

branches/dist-snap/src/doc/not_found.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Some things that might be helpful to you though:
1313

1414
## Reference
1515
* [The Rust official site](http://rust-lang.org)
16-
* [The Rust reference](http://doc.rust-lang.org/reference.html) (* [PDF](http://doc.rust-lang.org/reference.pdf))
16+
* [The Rust reference manual](http://doc.rust-lang.org/rust.html) (* [PDF](http://doc.rust-lang.org/rust.pdf))
1717

1818
## Docs
1919
* [The standard library](http://doc.rust-lang.org/std/)

0 commit comments

Comments
 (0)