Skip to content

Commit 399d33f

Browse files
committed
---
yaml --- r: 183551 b: refs/heads/beta c: a7d5c3f h: refs/heads/master i: 183549: 9e3d148 183547: c2ad2d0 183543: 4d324d1 183535: d9f98c2 183519: a06998a 183487: acf4a4b 183423: f85bdc0 183295: 5b3adb0 v: v3
1 parent bc3c496 commit 399d33f

File tree

128 files changed

+3523
-6667
lines changed

Some content is hidden

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

128 files changed

+3523
-6667
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: f96fb8ecb82bdab279f955a44fdb80e309815c6c
34+
refs/heads/beta: a7d5c3f682002157c9d74cce773fb792d92333e1
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,8 +1379,7 @@ do
13791379
done
13801380

13811381
# Munge any paths that appear in config.mk back to posix-y
1382-
cp config.tmp config.tmp.bak
1383-
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
1382+
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
13841383
rm -f config.tmp.bak
13851384

13861385
msg

branches/beta/mk/main.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,13 @@ SPACE :=
6161
SPACE +=
6262
ifneq ($(CFG_GIT),)
6363
ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
64-
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --date=short --pretty=format:'%cd')
64+
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --pretty=format:'%ci')
6565
CFG_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse HEAD)
6666
CFG_SHORT_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse --short=9 HEAD)
6767
CFG_VERSION += ($(CFG_SHORT_VER_HASH) $(CFG_VER_DATE))
6868
endif
6969
endif
7070

71-
CFG_BUILD_DATE = $(shell date +%F)
72-
CFG_VERSION += (built $(CFG_BUILD_DATE))
73-
7471
# Windows exe's need numeric versions - don't use anything but
7572
# numbers and dots here
7673
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
@@ -320,7 +317,6 @@ endif
320317
ifdef CFG_VER_HASH
321318
export CFG_VER_HASH
322319
endif
323-
export CFG_BUILD_DATE
324320
export CFG_VERSION
325321
export CFG_VERSION_WIN
326322
export CFG_RELEASE

branches/beta/src/doc/complement-bugreport.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ $ RUST_BACKTRACE=1 rustc ...
5656

5757
# I submitted a bug, but nobody has commented on it!
5858

59-
This is sad, but does happen sometimes, since we're short-staffed. If you submit a
60-
bug and you haven't received a comment on it within 3 business days, it's entirely
61-
reasonable to ask about the status of the bug in #rust on irc.mozilla.org.
59+
This is sad, but does happen sometimes, since we're short-staffed. If you
60+
submit a bug and you haven't received a comment on it within 3 business days,
61+
it's entirely reasonable to either ask on the #rust IRC channel,
62+
or post on the [rust-dev mailing list](https://mail.mozilla.org/listinfo/rust-dev)
63+
to ask what the status of the bug is.

branches/beta/src/doc/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ segfault when we allocate more memory?
224224

225225
The answer is that in the C++ version, `x` is a *reference* to the memory
226226
location where the first element of the array is stored. But in Ruby, `x` is a
227-
standalone value, not connected to the underlying array at all. Let's dig into
227+
standalone value, not connected to the underyling array at all. Let's dig into
228228
the details for a moment. Your program has access to memory, provided to it by
229229
the operating system. Each location in memory has an address. So when we make
230230
our vector, `v`, it's stored in a memory location somewhere:

branches/beta/src/doc/reference.md

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,21 +2377,33 @@ considered off, and using the features will result in a compiler error.
23772377

23782378
The currently implemented features of the reference compiler are:
23792379

2380+
* `advanced_slice_patterns` - see the [match expressions](#match-expressions)
2381+
section for discussion; the exact semantics of
2382+
slice patterns are subject to change.
2383+
23802384
* `asm` - The `asm!` macro provides a means for inline assembly. This is often
23812385
useful, but the exact syntax for this feature along with its
23822386
semantics are likely to change, so this macro usage must be opted
23832387
into.
23842388

2389+
* `associated_types` - Allows type aliases in traits. Experimental.
2390+
2391+
* `box_patterns` - Allows `box` patterns, the exact semantics of which
2392+
is subject to change.
2393+
2394+
* `box_syntax` - Allows use of `box` expressions, the exact semantics of which
2395+
is subject to change.
2396+
23852397
* `concat_idents` - Allows use of the `concat_idents` macro, which is in many
23862398
ways insufficient for concatenating identifiers, and may be
23872399
removed entirely for something more wholesome.
23882400

2389-
* `default_type_params` - Allows use of default type parameters. The future of
2390-
this feature is uncertain.
2391-
23922401
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
23932402
are inherently unstable and no promise about them is made.
23942403

2404+
* `int_uint` - Allows the use of the `int` and `uint` types, which are deprecated.
2405+
Use `isize` and `usize` instead.
2406+
23952407
* `lang_items` - Allows use of the `#[lang]` attribute. Like `intrinsics`,
23962408
lang items are inherently unstable and no promise about them
23972409
is made.
@@ -2410,12 +2422,33 @@ The currently implemented features of the reference compiler are:
24102422
* `log_syntax` - Allows use of the `log_syntax` macro attribute, which is a
24112423
nasty hack that will certainly be removed.
24122424

2425+
* `main` - Allows use of the `#[main]` attribute, which changes the entry point
2426+
into a Rust program. This capabiilty is subject to change.
2427+
2428+
* `macro_reexport` - Allows macros to be re-exported from one crate after being imported
2429+
from another. This feature was originally designed with the sole
2430+
use case of the Rust standard library in mind, and is subject to
2431+
change.
2432+
24132433
* `non_ascii_idents` - The compiler supports the use of non-ascii identifiers,
24142434
but the implementation is a little rough around the
24152435
edges, so this can be seen as an experimental feature
24162436
for now until the specification of identifiers is fully
24172437
fleshed out.
24182438

2439+
* `no_std` - Allows the `#![no_std]` crate attribute, which disables the implicit
2440+
`extern crate std`. This typically requires use of the unstable APIs
2441+
behind the libstd "facade", such as libcore and libcollections. It
2442+
may also cause problems when using syntax extensions, including
2443+
`#[derive]`.
2444+
2445+
* `on_unimplemented` - Allows the `#[rustc_on_unimplemented]` attribute, which allows
2446+
trait definitions to add specialized notes to error messages
2447+
when an implementation was expected but not found.
2448+
2449+
* `optin_builtin_traits` - Allows the definition of default and negative trait
2450+
implementations. Experimental.
2451+
24192452
* `plugin` - Usage of [compiler plugins][plugin] for custom lints or syntax extensions.
24202453
These depend on compiler internals and are subject to change.
24212454

@@ -2431,8 +2464,15 @@ The currently implemented features of the reference compiler are:
24312464
* `simd` - Allows use of the `#[simd]` attribute, which is overly simple and
24322465
not the SIMD interface we want to expose in the long term.
24332466

2467+
* `simd_ffi` - Allows use of SIMD vectors in signatures for foreign functions.
2468+
The SIMD interface is subject to change.
2469+
24342470
* `staged_api` - Allows usage of stability markers and `#![staged_api]` in a crate
24352471

2472+
* `start` - Allows use of the `#[start]` attribute, which changes the entry point
2473+
into a Rust program. This capabiilty, especially the signature for the
2474+
annotated function, is subject to change.
2475+
24362476
* `struct_inherit` - Allows using struct inheritance, which is barely
24372477
implemented and will probably be removed. Don't use this.
24382478

@@ -2460,18 +2500,20 @@ The currently implemented features of the reference compiler are:
24602500
which is considered wildly unsafe and will be
24612501
obsoleted by language improvements.
24622502

2503+
* `unsafe_no_drop_flag` - Allows use of the `#[unsafe_no_drop_flag]` attribute,
2504+
which removes hidden flag added to a type that
2505+
implements the `Drop` trait. The design for the
2506+
`Drop` flag is subject to change, and this feature
2507+
may be removed in the future.
2508+
24632509
* `unmarked_api` - Allows use of items within a `#![staged_api]` crate
24642510
which have not been marked with a stability marker.
24652511
Such items should not be allowed by the compiler to exist,
24662512
so if you need this there probably is a compiler bug.
24672513

2468-
* `associated_types` - Allows type aliases in traits. Experimental.
2469-
2470-
* `no_std` - Allows the `#![no_std]` crate attribute, which disables the implicit
2471-
`extern crate std`. This typically requires use of the unstable APIs
2472-
behind the libstd "facade", such as libcore and libcollections. It
2473-
may also cause problems when using syntax extensions, including
2474-
`#[derive]`.
2514+
* `visible_private_types` - Allows public APIs to expose otherwise private
2515+
types, e.g. as the return type of a public function.
2516+
This capability may be removed in the future.
24752517

24762518
If a feature is promoted to a language feature, then all existing programs will
24772519
start to receive compilation warnings about #[feature] directives which enabled
@@ -2591,8 +2633,9 @@ of any reference that points to it.
25912633

25922634
When a [local variable](#memory-slots) is used as an
25932635
[rvalue](#lvalues,-rvalues-and-temporaries) the variable will either be moved
2594-
or copied, depending on its type. All values whose type implements `Copy` are
2595-
copied, all others are moved.
2636+
or copied, depending on its type. For types that contain [owning
2637+
pointers](#pointer-types) or values that implement the special trait `Drop`,
2638+
the variable is moved. All other types are copied.
25962639

25972640
### Literal expressions
25982641

@@ -3004,7 +3047,7 @@ Some examples of call expressions:
30043047
# fn add(x: i32, y: i32) -> i32 { 0 }
30053048
30063049
let x: i32 = add(1i32, 2i32);
3007-
let pi: Result<f32, _> = "3.14".parse();
3050+
let pi: Option<f32> = "3.14".parse().ok();
30083051
```
30093052

30103053
### Lambda expressions
@@ -3147,7 +3190,7 @@ An example of a for loop over a series of integers:
31473190

31483191
```
31493192
# fn bar(b:usize) { }
3150-
for i in 0us..256 {
3193+
for i in range(0us, 256) {
31513194
bar(i);
31523195
}
31533196
```
@@ -3531,7 +3574,7 @@ An example of each kind:
35313574
```{rust}
35323575
let vec: Vec<i32> = vec![1, 2, 3];
35333576
let arr: [i32; 3] = [1, 2, 3];
3534-
let s: &[i32] = &vec[];
3577+
let s: &[i32] = &vec;
35353578
```
35363579

35373580
As you can see, the `vec!` macro allows you to create a `Vec<T>` easily. The

branches/beta/src/doc/trpl/compound-data-types.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,15 @@ let four_is_smaller = four <= ten;
263263
let four_equals_ten = four == ten;
264264
```
265265

266-
This may seem rather limiting, but it's a limitation which we can overcome.
267-
There are two ways: by implementing equality ourselves, or by using the
268-
[`match`][match] keyword. We don't know enough about Rust to implement equality
269-
yet, but we can use the `Ordering` enum from the standard library, which does:
266+
This may seem rather limiting, particularly equality being invalid; in
267+
many cases however, it's unnecessary. Rust provides the [`match`][match]
268+
keyword, which will be examined in more detail in the next section, which
269+
often allows better and easier branch control than a series of `if`/`else`
270+
statements would. However, for our [game][game] we need the comparisons
271+
to work so we will utilize the `Ordering` `enum` provided by the standard
272+
library which supports such comparisons. It has this form:
270273

271-
```
274+
```{rust}
272275
enum Ordering {
273276
Less,
274277
Equal,

branches/beta/src/doc/trpl/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ use std::sync::mpsc;
354354
fn main() {
355355
let (tx, rx) = mpsc::channel();
356356
357-
for _ in 0..10 {
357+
for _ in range(0, 10) {
358358
let tx = tx.clone();
359359
360360
Thread::spawn(move || {

branches/beta/src/doc/trpl/documentation.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Documentation
1+
% Rust Documentation
22

33
`rustdoc` is the built-in tool for generating documentation. It integrates
44
with the compiler to provide accurate hyperlinking between usage of types and
@@ -294,26 +294,3 @@ Documentation` on the first line).
294294
Like with a Rust crate, the `--test` argument will run the code
295295
examples to check they compile, and obeys any `--test-args` flags. The
296296
tests are named after the last `#` heading.
297-
298-
# Re-exports
299-
300-
Rustdoc will show the documentation for a publc re-export in both places:
301-
302-
```{rust,ignore}
303-
extern crate foo;
304-
305-
pub use foo::bar;
306-
```
307-
308-
This will create documentation for `bar` both inside the documentation for
309-
the crate `foo`, as well as the documentation for your crate. It will use
310-
the same documentation in both places.
311-
312-
This behavior can be supressed with `no_inline`:
313-
314-
```{rust,ignore}
315-
extern crate foo;
316-
317-
#[doc(no_inline)]
318-
pub use foo::bar;
319-
```

0 commit comments

Comments
 (0)