Skip to content

Commit fceff70

Browse files
committed
---
yaml --- r: 123658 b: refs/heads/try c: a325780 h: refs/heads/master v: v3
1 parent 58acd82 commit fceff70

File tree

219 files changed

+4605
-2994
lines changed

Some content is hidden

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

219 files changed

+4605
-2994
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: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: fa8da9d6b317f39402f1127575e2bd08db33c508
5+
refs/heads/try: a3257804df2bace236f83d9e5a9e887a1df30ef5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/RELEASES.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Version 0.9 (January 2014)
306306
* A new facility for enabling experimental features (feature gating) has
307307
been added, using the crate-level `#[feature(foo)]` attribute.
308308
* Managed boxes (@) are now behind a feature gate
309-
(`#[feature(managed_boxes)]`) in preperation for future removal. Use the
309+
(`#[feature(managed_boxes)]`) in preparation for future removal. Use the
310310
standard library's `Gc` or `Rc` types instead.
311311
* `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
312312
* Jumping back to the top of a loop is now done with `continue` instead of
@@ -398,7 +398,7 @@ Version 0.9 (January 2014)
398398
* std: `fmt::Default` can be implemented for any type to provide default
399399
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
400400
* std: The `rand` API continues to be tweaked.
401-
* std: The `rust_begin_unwind` function, useful for insterting breakpoints
401+
* std: The `rust_begin_unwind` function, useful for inserting breakpoints
402402
on failure in gdb, is now named `rust_fail`.
403403
* std: The `each_key` and `each_value` methods on `HashMap` have been
404404
replaced by the `keys` and `values` iterators.
@@ -429,7 +429,7 @@ Version 0.9 (January 2014)
429429
extensible interfaces and is now implemented by two different crates:
430430
libnative, for native threading and I/O; and libgreen, for green threading
431431
and I/O. This paves the way for using the standard library in more limited
432-
embeded environments.
432+
embedded environments.
433433
* std: The `comm` module has been rewritten to be much faster, have a
434434
simpler, more consistent API, and to work for both native and green
435435
threading.

branches/try/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "March 2014" "rustc 0.11-pre" "User Commands"
1+
.TH RUSTC "1" "March 2014" "rustc 0.11.0" "User Commands"
22
.SH NAME
33
rustc \- The Rust compiler
44
.SH SYNOPSIS

branches/try/man/rustdoc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTDOC "1" "March 2014" "rustdoc 0.11-pre" "User Commands"
1+
.TH RUSTDOC "1" "March 2014" "rustdoc 0.11.0" "User Commands"
22
.SH NAME
33
rustdoc \- generate documentation from Rust source code
44
.SH SYNOPSIS

branches/try/mk/main.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
# The version number
1616
CFG_RELEASE_NUM=0.11.0
17-
CFG_RELEASE_LABEL=-pre
17+
CFG_RELEASE_LABEL=
18+
19+
CFG_FILENAME_EXTRA=4e7c5e5c
1820

1921
ifndef CFG_ENABLE_NIGHTLY
2022
# This is the normal version string

branches/try/mk/target.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ $(foreach host,$(CFG_HOST), \
6868
# $(4) is the crate name
6969
define RUST_TARGET_STAGE_N
7070

71+
# NOTE: after a stage0 snap this should be just EXTRA_FILENAME, not with a stage
72+
# or target bound
73+
EXTRA_FILENAME_$(1)_$(2) = -C extra-filename=-$$(CFG_FILENAME_EXTRA)
74+
ifeq ($(1),0)
75+
ifeq ($$(CFG_BUILD),$(2))
76+
EXTRA_FILENAME_$(1)_$(2) =
77+
endif
78+
endif
79+
7180
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
7281
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
7382
$$(CRATEFILE_$(4)) \
@@ -85,7 +94,9 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8594
-L "$$(LLVM_LIBDIR_$(2))" \
8695
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
8796
$$(RUSTFLAGS_$(4)) \
88-
--out-dir $$(@D) $$<
97+
--out-dir $$(@D) \
98+
$$(EXTRA_FILENAME_$(1)_$(2)) \
99+
$$<
89100
@touch $$@
90101
$$(call LIST_ALL_OLD_GLOB_MATCHES,\
91102
$$(dir $$@)$$(call CFG_LIB_GLOB_$(2),$(4)))

branches/try/src/doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ To generate .pot and .po files, do something like:
5353
~~~~
5454
po4a --copyright-holder="The Rust Project Developers" \
5555
--package-name="Rust" \
56-
--package-version="0.11.0-pre" \
56+
--package-version="0.11.0" \
5757
-M UTF-8 -L UTF-8 \
5858
src/doc/po4a.conf
5959
~~~~
6060

61-
(the version number must be changed if it is not 0.11.0-pre now.)
61+
(the version number must be changed if it is not 0.11.0 now.)
6262

6363
Now you can translate documents with .po files, commonly used with gettext. If
6464
you are not familiar with gettext-based translation, please read the online

branches/try/src/doc/guide.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ an uninstall option.
5353

5454
You can re-run this script any time you want to update Rust. Which, at this
5555
point, is often. Rust is still pre-1.0, and so people assume that you're using
56-
a very recent Rust.
56+
a very recent Rust.
5757

5858
This brings me to one other point: some people, and somewhat rightfully so, get
5959
very upset when we tell you to `curl | sudo sh`. And they should be! Basically,
@@ -91,7 +91,6 @@ You should see some output that looks something like this:
9191

9292
```{ignore}
9393
rustc 0.11.0-pre (443a1cd 2014-06-08 14:56:52 -0700)
94-
host: x86_64-unknown-linux-gnu
9594
```
9695

9796
If you did, Rust has been installed successfully! Congrats!
@@ -168,7 +167,7 @@ Success! Let's go over what just happened in detail.
168167

169168
```
170169
fn main() {
171-
170+
172171
}
173172
```
174173

@@ -395,7 +394,7 @@ Once you have this file in place, we should be ready to build! Try this:
395394
```{bash}
396395
$ cargo build
397396
Compiling hello_world v0.1.0 (file:/home/yourname/projects/hello_world)
398-
$ ./target/hello_world
397+
$ ./target/hello_world
399398
Hello, world!
400399
```
401400

@@ -737,10 +736,10 @@ let x = (let y = 5i); // found `let` in ident position
737736
The compiler is telling us here that it was expecting to see the beginning of
738737
an expression, and a `let` can only begin a statement, not an expression.
739738

740-
However, re-assigning to a mutable binding is an expression:
739+
However, assigning to a variable binding is an expression:
741740

742741
```{rust}
743-
let mut x = 0i;
742+
let x;
744743
let y = x = 5i;
745744
```
746745

@@ -895,13 +894,14 @@ fn add_one(x: int) -> int {
895894
We would get an error:
896895

897896
```{ignore,notrust}
898-
note: consider removing this semicolon:
899-
x + 1;
900-
^
901897
error: not all control paths return a value
902898
fn add_one(x: int) -> int {
903899
x + 1;
904900
}
901+
902+
note: consider removing this semicolon:
903+
x + 1;
904+
^
905905
```
906906

907907
Remember our earlier discussions about semicolons and `()`? Our function claims

branches/try/src/doc/rust.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ nav {
132132
-moz-column-count: 2;
133133
-webkit-column-count: 2;
134134
font-size: 15px;
135+
margin: 0 0 1em 0;
135136
}
136137
p {
137138
margin: 0 0 1em 0;
@@ -275,7 +276,7 @@ dd {
275276

276277
nav ul {
277278
list-style-type: none;
278-
margin: 0 0 20px 0;
279+
margin: 0;
279280
padding-left: 0px;
280281
}
281282

branches/try/src/doc/rust.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,7 @@ A temporary's lifetime equals the largest lifetime of any reference that points
25392539
#### Moved and copied types
25402540

25412541
When a [local variable](#memory-slots) is used
2542-
as an [rvalue](#lvalues-rvalues-and-temporaries)
2542+
as an [rvalue](#lvalues,-rvalues-and-temporaries)
25432543
the variable will either be moved or copied, depending on its type.
25442544
For types that contain [owning pointers](#pointer-types)
25452545
or values that implement the special trait `Drop`,
@@ -2562,7 +2562,7 @@ string, boolean value, or the unit value.
25622562
### Path expressions
25632563

25642564
A [path](#paths) used as an expression context denotes either a local variable or an item.
2565-
Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).
2565+
Path expressions are [lvalues](#lvalues,-rvalues-and-temporaries).
25662566

25672567
### Tuple expressions
25682568

@@ -2675,7 +2675,7 @@ foo().x;
26752675
(Struct {a: 10, b: 20}).a;
26762676
~~~~
26772677

2678-
A field access is an [lvalue](#lvalues-rvalues-and-temporaries) referring to the value of that field.
2678+
A field access is an [lvalue](#lvalues,-rvalues-and-temporaries) referring to the value of that field.
26792679
When the type providing the field inherits mutabilty, it can be [assigned](#assignment-expressions) to.
26802680

26812681
Also, if the type of the expression to the left of the dot is a pointer,
@@ -2711,7 +2711,7 @@ idx_expr : expr '[' expr ']' ;
27112711

27122712
[Vector](#vector-types)-typed expressions can be indexed by writing a
27132713
square-bracket-enclosed expression (the index) after them. When the
2714-
vector is mutable, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to.
2714+
vector is mutable, the resulting [lvalue](#lvalues,-rvalues-and-temporaries) can be assigned to.
27152715

27162716
Indices are zero-based, and may be of any integral type. Vector access
27172717
is bounds-checked at run-time. When the check fails, it will put the
@@ -2737,7 +2737,7 @@ before the expression they apply to.
27372737
: Negation. May only be applied to numeric types.
27382738
* `*`
27392739
: Dereference. When applied to a [pointer](#pointer-types) it denotes the pointed-to location.
2740-
For pointers to mutable locations, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to.
2740+
For pointers to mutable locations, the resulting [lvalue](#lvalues,-rvalues-and-temporaries) can be assigned to.
27412741
On non-pointer types, it calls the `deref` method of the `std::ops::Deref` trait, or the
27422742
`deref_mut` method of the `std::ops::DerefMut` trait (if implemented by the type and required
27432743
for an outer expression that will or could mutate the dereference), and produces the
@@ -2872,8 +2872,8 @@ fn avg(v: &[f64]) -> f64 {
28722872

28732873
#### Assignment expressions
28742874

2875-
An _assignment expression_ consists of an [lvalue](#lvalues-rvalues-and-temporaries) expression followed by an
2876-
equals sign (`=`) and an [rvalue](#lvalues-rvalues-and-temporaries) expression.
2875+
An _assignment expression_ consists of an [lvalue](#lvalues,-rvalues-and-temporaries) expression followed by an
2876+
equals sign (`=`) and an [rvalue](#lvalues,-rvalues-and-temporaries) expression.
28772877

28782878
Evaluating an assignment expression [either copies or moves](#moved-and-copied-types) its right-hand operand to its left-hand operand.
28792879

@@ -3186,7 +3186,7 @@ fn main() {
31863186
~~~~
31873187

31883188
A `match` behaves differently depending on whether or not the head expression
3189-
is an [lvalue or an rvalue](#lvalues-rvalues-and-temporaries).
3189+
is an [lvalue or an rvalue](#lvalues,-rvalues-and-temporaries).
31903190
If the head expression is an rvalue, it is
31913191
first evaluated into a temporary location, and the resulting value
31923192
is sequentially compared to the patterns in the arms until a match
@@ -3550,7 +3550,7 @@ There are four varieties of pointer in Rust:
35503550
: These point to memory _owned by some other value_.
35513551
References arise by (automatic) conversion from owning pointers, managed pointers,
35523552
or by applying the borrowing operator `&` to some other value,
3553-
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
3553+
including [lvalues, rvalues or temporaries](#lvalues,-rvalues-and-temporaries).
35543554
References are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`,
35553555
for example `&int` means a reference to an integer.
35563556
Copying a reference is a "shallow" operation:
@@ -3852,7 +3852,7 @@ references to any boxes; the remainder of its heap is immediately freed.
38523852
A task's stack contains slots.
38533853

38543854
A _slot_ is a component of a stack frame, either a function parameter,
3855-
a [temporary](#lvalues-rvalues-and-temporaries), or a local variable.
3855+
a [temporary](#lvalues,-rvalues-and-temporaries), or a local variable.
38563856

38573857
A _local variable_ (or *stack-local* allocation) holds a value directly,
38583858
allocated within the stack's memory. The value is a part of the stack frame.
@@ -3889,12 +3889,11 @@ by the prefix operator `box`. When the standard library is in use, the type of a
38893889
An example of an owned box type and value:
38903890

38913891
~~~~
3892-
38933892
let x: Box<int> = box 10;
38943893
~~~~
38953894

3896-
Owned box values exist in 1:1 correspondence with their heap allocation
3897-
copying an owned box value makes a shallow copy of the pointer
3895+
Owned box values exist in 1:1 correspondence with their heap allocation,
3896+
copying an owned box value makes a shallow copy of the pointer.
38983897
Rust will consider a shallow copy of an owned box to move ownership of the value. After a value has been moved, the source location cannot be used unless it is reinitialized.
38993898

39003899
~~~~

branches/try/src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ fn main() {
30383038
~~~{.ignore}
30393039
// `b/mod.rs`
30403040
pub mod c;
3041-
pub fn foo() { println!("Foo!"; }
3041+
pub fn foo() { println!("Foo!"); }
30423042
~~~
30433043

30443044
~~~{.ignore}

branches/try/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.11.0-pre" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.11.0" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>

branches/try/src/etc/vim/ftplugin/rust.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ setlocal formatoptions-=t formatoptions+=croqnl
3131
" j was only added in 7.3.541, so stop complaints about its nonexistence
3232
silent! setlocal formatoptions+=j
3333

34+
" smartindent will be overridden by indentexpr if filetype indent is on, but
35+
" otherwise it's better than nothing.
36+
setlocal smartindent nocindent
37+
38+
setlocal tabstop=4 shiftwidth=4 expandtab
39+
3440
" This includeexpr isn't perfect, but it's a good start
3541
setlocal includeexpr=substitute(v:fname,'::','/','g')
3642

branches/try/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ syn keyword rustTrait Copy Send Sized Share
6565
syn keyword rustTrait Add Sub Mul Div Rem Neg Not
6666
syn keyword rustTrait BitAnd BitOr BitXor
6767
syn keyword rustTrait Drop Deref DerefMut
68-
syn keyword rustTrait Shl Shr Index
68+
syn keyword rustTrait Shl Shr Index IndexMut
6969
syn keyword rustEnum Option
7070
syn keyword rustEnumVariant Some None
7171
syn keyword rustEnum Result

branches/try/src/liballoc/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
//! by libc malloc/free. The `libc_heap` module is defined to be wired up to
6161
//! the system malloc/free.
6262
63-
#![crate_id = "alloc#0.11.0-pre"]
63+
#![crate_id = "alloc#0.11.0"] // NOTE: remove after a stage0 snap
64+
#![crate_name = "alloc"]
6465
#![experimental]
6566
#![license = "MIT/ASL2"]
6667
#![crate_type = "rlib"]
@@ -70,6 +71,7 @@
7071

7172
#![no_std]
7273
#![feature(lang_items, phase, unsafe_destructor)]
74+
#![allow(unused_attribute)] // NOTE: remove after stage0
7375

7476
#[phase(plugin, link)]
7577
extern crate core;

branches/try/src/libarena/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@
1919
//! arena but can only hold objects of a single type, and Arena, which is a
2020
//! more complex, slower Arena which can hold objects of any type.
2121
22-
#![crate_id = "arena#0.11.0-pre"]
22+
#![crate_id = "arena#0.11.0"]
23+
#![crate_name = "arena"]
2324
#![experimental]
2425
#![crate_type = "rlib"]
2526
#![crate_type = "dylib"]
2627
#![license = "MIT/ASL2"]
2728
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2829
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
29-
html_root_url = "http://doc.rust-lang.org/")]
30+
html_root_url = "http://doc.rust-lang.org/0.11.0/")]
3031

3132
#![feature(unsafe_destructor)]
3233
#![allow(missing_doc)]
34+
#![allow(unused_attribute)] // NOTE: remove after stage0
3335

3436
use std::cell::{Cell, RefCell};
3537
use std::cmp;

0 commit comments

Comments
 (0)