Skip to content

Commit 828c183

Browse files
committed
---
yaml --- r: 274085 b: refs/heads/stable c: 0e3fb18 h: refs/heads/master i: 274083: 6dcff7d
1 parent a5d0cea commit 828c183

File tree

346 files changed

+7608
-9084
lines changed

Some content is hidden

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

346 files changed

+7608
-9084
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a5d1e7a59a2a3413c377b003075349f854304b5e
32+
refs/heads/stable: 0e3fb184ed1cf269ec04531c2750d9cce4c034bd
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ labels to triage issues:
174174
* Yellow, **A**-prefixed labels state which **area** of the project an issue
175175
relates to.
176176

177-
* Magenta, **B**-prefixed labels identify bugs which are **blockers**.
177+
* Magenta, **B**-prefixed labels identify bugs which **belong** elsewhere.
178178

179179
* Green, **E**-prefixed labels explain the level of **experience** necessary
180180
to fix the issue.

branches/stable/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Read ["Installing Rust"] from [The Book].
1717
1. Make sure you have installed the dependencies:
1818

1919
* `g++` 4.7 or `clang++` 3.x
20-
* `python` 2.7 or later (but not 3.x)
20+
* `python` 2.6 or later (but not 3.x)
2121
* GNU `make` 3.81 or later
2222
* `curl`
2323
* `git`
@@ -78,7 +78,7 @@ build.
7878
Download [MinGW from
7979
here](http://mingw-w64.org/doku.php/download/mingw-builds), and choose the
8080
`threads=win32,exceptions=dwarf/seh` flavor when installing. After installing,
81-
add its `bin` directory to your `PATH`. This is due to [#28260](https://github.com/rust-lang/rust/issues/28260), in the future,
81+
add its `bin` directory to your `PATH`. This is due to #28260, in the future,
8282
installing from pacman should be just fine.
8383
8484
```

branches/stable/RELEASES.md

Lines changed: 0 additions & 357 deletions
Large diffs are not rendered by default.

branches/stable/configure

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -499,18 +499,13 @@ case $CFG_CPUTYPE in
499499
CFG_CPUTYPE=aarch64
500500
;;
501501

502-
powerpc | ppc)
502+
# At some point, when ppc64[le] support happens, this will need to do
503+
# something clever. For now it's safe to assume that we're only ever
504+
# interested in building 32 bit.
505+
powerpc | ppc | ppc64)
503506
CFG_CPUTYPE=powerpc
504507
;;
505508

506-
powerpc64 | ppc64)
507-
CFG_CPUTYPE=powerpc64
508-
;;
509-
510-
powerpc64le | ppc64le)
511-
CFG_CPUTYPE=powerpc64le
512-
;;
513-
514509
x86_64 | x86-64 | x64 | amd64)
515510
CFG_CPUTYPE=x86_64
516511
;;
@@ -1035,7 +1030,7 @@ then
10351030
if [ -n "$CFG_OSX_CLANG_VERSION" ]
10361031
then
10371032
case $CFG_OSX_CLANG_VERSION in
1038-
(7.0* | 7.1* | 7.2*)
1033+
(7.0*)
10391034
step_msg "found ok version of APPLE CLANG: $CFG_OSX_CLANG_VERSION"
10401035
;;
10411036
(*)

branches/stable/mk/cfg/powerpc64-unknown-linux-gnu.mk

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

branches/stable/mk/cfg/powerpc64le-unknown-linux-gnu.mk

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

branches/stable/mk/cfg/x86_64-unknown-bitrig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CFG_STATIC_LIB_NAME_x86_64-unknown-bitrig=lib$(1).a
88
CFG_LIB_GLOB_x86_64-unknown-bitrig=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_x86_64-unknown-bitrig=$(1)-*.dylib.dSYM
1010
CFG_JEMALLOC_CFLAGS_x86_64-unknown-bitrig := -m64 -I/usr/include $(CFLAGS)
11-
CFG_GCCISH_CFLAGS_x86_64-unknown-bitrig := -Wall -Werror -fPIE -fPIC -m64 -I/usr/include $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_x86_64-unknown-bitrig := -Wall -Werror -fPIC -m64 -I/usr/include $(CFLAGS)
1212
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-bitrig := -shared -pic -pthread -m64 $(LDFLAGS)
1313
CFG_GCCISH_DEF_FLAG_x86_64-unknown-bitrig := -Wl,--export-dynamic,--dynamic-list=
1414
CFG_LLC_FLAGS_x86_64-unknown-bitrig :=

branches/stable/mk/crates.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ TARGET_CRATES := libc std flate arena term \
5757
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_front rustc_platform_intrinsics \
60-
rustc_plugin rustc_metadata rustc_passes
60+
rustc_plugin rustc_metadata
6161
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros
6262
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
6363

@@ -97,14 +97,13 @@ DEPS_rustc_data_structures := std log serialize
9797
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
9898
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
9999
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
100-
rustc_metadata syntax_ext rustc_passes
100+
rustc_metadata syntax_ext
101101
DEPS_rustc_front := std syntax log serialize
102102
DEPS_rustc_lint := rustc log syntax
103103
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
104104
DEPS_rustc_metadata := rustc rustc_front syntax rbml
105-
DEPS_rustc_passes := syntax rustc core
106105
DEPS_rustc_mir := rustc rustc_front syntax
107-
DEPS_rustc_resolve := arena rustc rustc_front log syntax
106+
DEPS_rustc_resolve := rustc rustc_front log syntax
108107
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
109108
DEPS_rustc_plugin := rustc rustc_metadata syntax
110109
DEPS_rustc_privacy := rustc rustc_front log syntax

branches/stable/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CFG_RELEASE_NUM=1.7.0
1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release
2020
# versions (section 9)
21-
CFG_PRERELEASE_VERSION=.4
21+
CFG_PRERELEASE_VERSION=.1
2222

2323
# Append a version-dependent hash to each library, so we can install different
2424
# versions in the same place

branches/stable/src/compiletest/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
3838
("mips", "mips"),
3939
("msp430", "msp430"),
4040
("powerpc", "powerpc"),
41-
("powerpc64", "powerpc64"),
42-
("powerpc64le", "powerpc64le"),
4341
("s390x", "systemz"),
4442
("sparc", "sparc"),
4543
("x86_64", "x86_64"),

branches/stable/src/doc/book/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
* [FFI](ffi.md)
5252
* [Borrow and AsRef](borrow-and-asref.md)
5353
* [Release Channels](release-channels.md)
54-
* [Using Rust without the standard library](using-rust-without-the-standard-library.md)
5554
* [Nightly Rust](nightly-rust.md)
5655
* [Compiler Plugins](compiler-plugins.md)
5756
* [Inline Assembly](inline-assembly.md)

branches/stable/src/doc/book/bibliography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Rust, as well as publications about Rust.
3333
* [Non-blocking steal-half work queues](http://www.cs.bgu.ac.il/%7Ehendlerd/papers/p280-hendler.pdf)
3434
* [Reagents: expressing and composing fine-grained concurrency](http://www.mpi-sws.org/~turon/reagents.pdf)
3535
* [Algorithms for scalable synchronization of shared-memory multiprocessors](https://www.cs.rochester.edu/u/scott/papers/1991_TOCS_synch.pdf)
36-
* [Epoch-based reclamation](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-579.pdf).
36+
* [Epoc-based reclamation](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-579.pdf).
3737

3838
### Others
3939

branches/stable/src/doc/book/crates-and-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
When a project starts getting large, it’s considered good software
44
engineering practice to split it up into a bunch of smaller pieces, and then
5-
fit them together. It is also important to have a well-defined interface, so
5+
fit them together. It’s also important to have a well-defined interface, so
66
that some of your functionality is private, and some is public. To facilitate
77
these kinds of things, Rust has a module system.
88

branches/stable/src/doc/book/error-handling.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,10 +1795,6 @@ To convert this to proper error handling, we need to do the following:
17951795
Let's try it:
17961796

17971797
```rust,ignore
1798-
use std::error::Error;
1799-
1800-
// The rest of the code before this is unchanged
1801-
18021798
fn search<P: AsRef<Path>>
18031799
(file_path: P, city: &str)
18041800
-> Result<Vec<PopulationCount>, Box<Error+Send+Sync>> {
@@ -1907,13 +1903,8 @@ let city = if !matches.free.is_empty() {
19071903
return;
19081904
};
19091905
1910-
match search(&data_file, &city) {
1911-
Ok(pops) => {
1912-
for pop in pops {
1913-
println!("{}, {}: {:?}", pop.city, pop.country, pop.count);
1914-
}
1915-
}
1916-
Err(err) => println!("{}", err)
1906+
for pop in search(&data_file, &city) {
1907+
println!("{}, {}: {:?}", pop.city, pop.country, pop.count);
19171908
}
19181909
...
19191910
```
@@ -1936,10 +1927,6 @@ that it is generic on some type parameter `R` that satisfies
19361927
`io::Read`. Another way is to use trait objects:
19371928

19381929
```rust,ignore
1939-
use std::io;
1940-
1941-
// The rest of the code before this is unchanged
1942-
19431930
fn search<P: AsRef<Path>>
19441931
(file_path: &Option<P>, city: &str)
19451932
-> Result<Vec<PopulationCount>, Box<Error+Send+Sync>> {

branches/stable/src/doc/book/ffi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,6 @@ are:
478478
* `aapcs`
479479
* `cdecl`
480480
* `fastcall`
481-
* `vectorcall`
482-
This is currently hidden behind the `abi_vectorcall` gate and is subject to change.
483481
* `Rust`
484482
* `rust-intrinsic`
485483
* `system`

branches/stable/src/doc/book/getting-started.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,9 @@ Cargo checks to see if any of your project’s files have been modified, and onl
505505
rebuilds your project if they’ve changed since the last time you built it.
506506

507507
With simple projects, Cargo doesn't bring a whole lot over just using `rustc`,
508-
but it will become useful in future. This is especially true when you start
509-
using crates; these are synonymous with a ‘library’ or ‘package’ in other
510-
programming languages. For complex projects composed of multiple crates, it’s
511-
much easier to let Cargo coordinate the build. Using Cargo, you can run `cargo
512-
build`, and it should work the right way.
508+
but it will become useful in future. With complex projects composed of multiple
509+
crates, it’s much easier to let Cargo coordinate the build. With Cargo, you can
510+
run `cargo build`, and it should work the right way.
513511

514512
## Building for Release
515513

branches/stable/src/doc/book/lifetimes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ fn frob<'a, 'b>(s: &'a str, t: &'b str) -> &str; // Expanded: Output lifetime is
353353
fn get_mut(&mut self) -> &mut T; // elided
354354
fn get_mut<'a>(&'a mut self) -> &'a mut T; // expanded
355355
356-
fn args<T: ToCStr>(&mut self, args: &[T]) -> &mut Command; // elided
357-
fn args<'a, 'b, T: ToCStr>(&'a mut self, args: &'b [T]) -> &'a mut Command; // expanded
356+
fn args<T:ToCStr>(&mut self, args: &[T]) -> &mut Command; // elided
357+
fn args<'a, 'b, T:ToCStr>(&'a mut self, args: &'b [T]) -> &'a mut Command; // expanded
358358
359359
fn new(buf: &mut [u8]) -> BufWriter; // elided
360360
fn new<'a>(buf: &'a mut [u8]) -> BufWriter<'a>; // expanded

branches/stable/src/doc/book/macros.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,9 @@ This expands to
285285

286286
```text
287287
const char *state = "reticulating splines";
288-
{
289-
int state = get_log_state();
290-
if (state > 0) {
291-
printf("log(%d): %s\n", state, state);
292-
}
288+
int state = get_log_state();
289+
if (state > 0) {
290+
printf("log(%d): %s\n", state, state);
293291
}
294292
```
295293

@@ -478,9 +476,9 @@ which syntactic form it matches.
478476

479477
There are additional rules regarding the next token after a metavariable:
480478

481-
* `expr` and `stmt` variables may only be followed by one of: `=> , ;`
482-
* `ty` and `path` variables may only be followed by one of: `=> , = | ; : > [ { as where`
483-
* `pat` variables may only be followed by one of: `=> , = | if in`
479+
* `expr` variables may only be followed by one of: `=> , ;`
480+
* `ty` and `path` variables may only be followed by one of: `=> , : = > as`
481+
* `pat` variables may only be followed by one of: `=> , = if in`
484482
* Other variables may be followed by any token.
485483

486484
These rules provide some flexibility for Rust’s syntax to evolve without

0 commit comments

Comments
 (0)