Skip to content

Commit 88aac56

Browse files
committed
---
yaml --- r: 272871 b: refs/heads/beta c: 096409c h: refs/heads/master i: 272869: 342dea4 272867: 61beabd 272863: e7d4fda
1 parent 2427bd1 commit 88aac56

File tree

116 files changed

+1811
-2788
lines changed

Some content is hidden

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

116 files changed

+1811
-2788
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 6d262db4482e13ec05eb113e57e26d249698b4cf
26+
refs/heads/beta: 096409cf8c2f0fcfe8dec77fd293ce5a4ba41284
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ build.
7777
7878
Download [MinGW from
7979
here](http://mingw-w64.org/doku.php/download/mingw-builds), and choose the
80-
`threads=win32,exceptions=dwarf/seh` flavor when installing. Also, make sure to install to a path without spaces in it. After installing,
80+
`threads=win32,exceptions=dwarf/seh` flavor when installing. After installing,
8181
add its `bin` directory to your `PATH`. This is due to [#28260](https://github.com/rust-lang/rust/issues/28260), in the future,
8282
installing from pacman should be just fine.
8383

branches/beta/mk/cfg/i686-pc-windows-gnu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ CFG_GNU_TRIPLE_i686-pc-windows-gnu := i686-w64-mingw32
2525
CFG_THIRD_PARTY_OBJECTS_i686-pc-windows-gnu := crt2.o dllcrt2.o
2626
CFG_INSTALLED_OBJECTS_i686-pc-windows-gnu := crt2.o dllcrt2.o rsbegin.o rsend.o
2727
CFG_RUSTRT_HAS_STARTUP_OBJS_i686-pc-windows-gnu := 1
28+
# FIXME(#31030) - there's not a great reason to disable jemalloc here
29+
CFG_DISABLE_JEMALLOC_i686-pc-windows-gnu := 1

branches/beta/mk/cfg/x86_64-pc-windows-gnu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ CFG_GNU_TRIPLE_x86_64-pc-windows-gnu := x86_64-w64-mingw32
2525
CFG_THIRD_PARTY_OBJECTS_x86_64-pc-windows-gnu := crt2.o dllcrt2.o
2626
CFG_INSTALLED_OBJECTS_x86_64-pc-windows-gnu := crt2.o dllcrt2.o rsbegin.o rsend.o
2727
CFG_RUSTRT_HAS_STARTUP_OBJS_x86_64-pc-windows-gnu := 1
28+
# FIXME(#31030) - there's not a great reason to disable jemalloc here
29+
CFG_DISABLE_JEMALLOC_x86_64-pc-windows-gnu := 1

branches/beta/mk/rt.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ COMPRT_AR_$(1) := $$(AR_$(1))
253253
# We chomp -Werror here because GCC warns about the type signature of
254254
# builtins not matching its own and the build fails. It's a bit hacky,
255255
# but what can we do, we're building libclang-rt using GCC ......
256-
COMPRT_CFLAGS_$(1) := $$(CFG_GCCISH_CFLAGS_$(1)) -Wno-error -std=c99
256+
COMPRT_CFLAGS_$(1) := $$(filter-out -Werror -Werror=*,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
257257

258258
# FreeBSD Clang's packaging is problematic; it doesn't copy unwind.h to
259259
# the standard include directory. This should really be in our changes to
@@ -361,7 +361,7 @@ $$(BACKTRACE_BUILD_DIR_$(1))/Makefile: $$(BACKTRACE_DEPS) $$(MKFILE_DEPS)
361361
CC="$$(CC_$(1))" \
362362
AR="$$(AR_$(1))" \
363363
RANLIB="$$(AR_$(1)) s" \
364-
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1)) -Wno-error -fno-stack-protector" \
364+
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) -fno-stack-protector" \
365365
$(S)src/libbacktrace/configure --build=$(CFG_GNU_TRIPLE_$(CFG_BUILD)) --host=$(CFG_GNU_TRIPLE_$(1)))
366366
$$(Q)echo '#undef HAVE_ATOMIC_FUNCTIONS' >> \
367367
$$(BACKTRACE_BUILD_DIR_$(1))/config.h

branches/beta/src/bootstrap/build/sanity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn check(build: &mut Build) {
7979
}
8080

8181
// Make sure musl-root is valid if specified
82-
if target.contains("musl") && target.contains("x86_64") {
82+
if target.contains("musl") {
8383
match build.config.musl_root {
8484
Some(ref root) => {
8585
if fs::metadata(root.join("lib/libc.a")).is_err() {

branches/beta/src/doc/book/iterators.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ Now that you know more Rust, we can talk in detail about how this works.
1414
Ranges (the `0..10`) are 'iterators'. An iterator is something that we can
1515
call the `.next()` method on repeatedly, and it gives us a sequence of things.
1616

17-
(By the way, a range with two dots like `0..10` is inclusive on the left (so it
18-
starts at 0) and exclusive on the right (so it ends at 9). A mathematician
19-
would write "[0, 10)". To get a range that goes all the way up to 10 you can
20-
write `0...10`.)
21-
2217
Like this:
2318

2419
```rust

branches/beta/src/doc/book/syntax-index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
* `..` (`..`, `expr..`, `..expr`, `expr..expr`): right-exclusive range literal.
6767
* `..` (`..expr`): struct literal update syntax. See [Structs (Update syntax)].
6868
* `..` (`variant(x, ..)`, `struct_type { x, .. }`): "and the rest" pattern binding. See [Patterns (Ignoring bindings)].
69-
* `...` (`...expr`, `expr...expr`) *in an expression*: inclusive range expression. See [Iterators].
70-
* `...` (`expr...expr`) *in a pattern*: inclusive range pattern. See [Patterns (Ranges)].
69+
* `...` (`expr ... expr`): inclusive range pattern. See [Patterns (Ranges)].
7170
* `/` (`expr / expr`): arithmetic division. Overloadable (`Div`).
7271
* `/=` (`var /= expr`): arithmetic division & assignment.
7372
* `:` (`pat: type`, `ident: type`): constraints. See [Variable Bindings], [Functions], [Structs], [Traits].
@@ -206,7 +205,6 @@
206205
[Functions (Early Returns)]: functions.html#early-returns
207206
[Functions]: functions.html
208207
[Generics]: generics.html
209-
[Iterators]: iterators.html
210208
[Lifetimes]: lifetimes.html
211209
[Loops (`for`)]: loops.html#for
212210
[Loops (`loop`)]: loops.html#loop

branches/beta/src/doc/book/vectors.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -115,36 +115,6 @@ for i in v {
115115
}
116116
```
117117

118-
Note: You cannot use the vector again once you have iterated by taking ownership of the vector.
119-
You can iterate the vector multiple times by taking a reference to the vector whilst iterating.
120-
For example, the following code does not compile.
121-
122-
```rust,ignore
123-
let mut v = vec![1, 2, 3, 4, 5];
124-
125-
for i in v {
126-
println!("Take ownership of the vector and its element {}", i);
127-
}
128-
129-
for i in v {
130-
println!("Take ownership of the vector and its element {}", i);
131-
}
132-
```
133-
134-
Whereas the following works perfectly,
135-
136-
```rust
137-
let mut v = vec![1, 2, 3, 4, 5];
138-
139-
for i in &v {
140-
println!("This is a reference to {}", i);
141-
}
142-
143-
for i in &v {
144-
println!("This is a reference to {}", i);
145-
}
146-
```
147-
148118
Vectors have many more useful methods, which you can read about in [their
149119
API documentation][vec].
150120

branches/beta/src/doc/reference.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,10 +2277,6 @@ The currently implemented features of the reference compiler are:
22772277
`#[derive_Foo] #[derive_Bar]`, which can be user-defined syntax
22782278
extensions.
22792279

2280-
* `inclusive_range_syntax` - Allows use of the `a...b` and `...b` syntax for inclusive ranges.
2281-
2282-
* `inclusive_range` - Allows use of the types that represent desugared inclusive ranges.
2283-
22842280
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
22852281
are inherently unstable and no promise about them is made.
22862282

@@ -2751,25 +2747,6 @@ let y = 0..10;
27512747
assert_eq!(x, y);
27522748
```
27532749

2754-
Similarly, the `...` operator will construct an object of one of the
2755-
`std::ops::RangeInclusive` variants.
2756-
2757-
```
2758-
# #![feature(inclusive_range_syntax)]
2759-
1...2; // std::ops::RangeInclusive
2760-
...4; // std::ops::RangeToInclusive
2761-
```
2762-
2763-
The following expressions are equivalent.
2764-
2765-
```
2766-
# #![feature(inclusive_range_syntax, inclusive_range)]
2767-
let x = std::ops::RangeInclusive::NonEmpty {start: 0, end: 10};
2768-
let y = 0...10;
2769-
2770-
assert_eq!(x, y);
2771-
```
2772-
27732750
### Unary operator expressions
27742751

27752752
Rust defines the following unary operators. They are all written as prefix operators,

branches/beta/src/etc/platform-intrinsics/generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def parse_args():
691691
parser.add_argument('-o', '--out', type=argparse.FileType('w'), default=sys.stdout,
692692
help = 'File to output to (default stdout).')
693693
parser.add_argument('-i', '--info', type=argparse.FileType('r'),
694-
help = 'File containing platform specific information to merge into '
694+
help = 'File containing platform specific information to merge into'
695695
'the input files\' header.')
696696
parser.add_argument('in_', metavar="FILE", type=argparse.FileType('r'), nargs='+',
697697
help = 'JSON files to load')
@@ -735,12 +735,12 @@ def open(self, platform):
735735
736736
use {{Intrinsic, i, i_, u, u_, f, v, v_, agg, p, void}};
737737
use IntrinsicDef::Named;
738-
use rustc::middle::ty::TyCtxt;
738+
use rustc::middle::ty;
739739
740740
// The default inlining settings trigger a pathological behaviour in
741741
// LLVM, which causes makes compilation very slow. See #28273.
742742
#[inline(never)]
743-
pub fn find<'tcx>(_tcx: &TyCtxt<'tcx>, name: &str) -> Option<Intrinsic> {{
743+
pub fn find<'tcx>(_tcx: &ty::ctxt<'tcx>, name: &str) -> Option<Intrinsic> {{
744744
if !name.starts_with("{0}") {{ return None }}
745745
Some(match &name["{0}".len()..] {{'''.format(platform.intrinsic_prefix())
746746

branches/beta/src/etc/platform-intrinsics/x86/fma.json

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

branches/beta/src/jemalloc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit aab1c0a0e0b39825b16673128729ef46310a5da8
1+
Subproject commit e24a1a025a1f214e40eedafe3b9c7b1d69937922

branches/beta/src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#![feature(fmt_internals)]
4141
#![feature(fmt_radix)]
4242
#![feature(heap_api)]
43-
#![feature(inclusive_range)]
43+
#![feature(iter_arith)]
4444
#![feature(iter_arith)]
4545
#![feature(lang_items)]
4646
#![feature(nonzero)]

branches/beta/src/libcollections/range.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub trait RangeArgument<T> {
3535
}
3636
}
3737

38-
// FIXME add inclusive ranges to RangeArgument
3938

4039
impl<T> RangeArgument<T> for RangeFull {}
4140

branches/beta/src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Unicode string slices
11+
//! Unicode string slices.
1212
//!
1313
//! *[See also the `str` primitive type](../primitive.str.html).*
1414

branches/beta/src/libcollections/string.rs

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use core::fmt;
5959
use core::hash;
6060
use core::iter::FromIterator;
6161
use core::mem;
62-
use core::ops::{self, Add, Index, IndexMut};
62+
use core::ops::{self, Add};
6363
use core::ptr;
6464
use core::slice;
6565
use core::str::pattern::Pattern;
@@ -1606,24 +1606,6 @@ impl ops::Index<ops::RangeFull> for String {
16061606
unsafe { str::from_utf8_unchecked(&self.vec) }
16071607
}
16081608
}
1609-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1610-
impl ops::Index<ops::RangeInclusive<usize>> for String {
1611-
type Output = str;
1612-
1613-
#[inline]
1614-
fn index(&self, index: ops::RangeInclusive<usize>) -> &str {
1615-
Index::index(&**self, index)
1616-
}
1617-
}
1618-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1619-
impl ops::Index<ops::RangeToInclusive<usize>> for String {
1620-
type Output = str;
1621-
1622-
#[inline]
1623-
fn index(&self, index: ops::RangeToInclusive<usize>) -> &str {
1624-
Index::index(&**self, index)
1625-
}
1626-
}
16271609

16281610
#[stable(feature = "derefmut_for_string", since = "1.2.0")]
16291611
impl ops::IndexMut<ops::Range<usize>> for String {
@@ -1653,20 +1635,6 @@ impl ops::IndexMut<ops::RangeFull> for String {
16531635
unsafe { mem::transmute(&mut *self.vec) }
16541636
}
16551637
}
1656-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1657-
impl ops::IndexMut<ops::RangeInclusive<usize>> for String {
1658-
#[inline]
1659-
fn index_mut(&mut self, index: ops::RangeInclusive<usize>) -> &mut str {
1660-
IndexMut::index_mut(&mut **self, index)
1661-
}
1662-
}
1663-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1664-
impl ops::IndexMut<ops::RangeToInclusive<usize>> for String {
1665-
#[inline]
1666-
fn index_mut(&mut self, index: ops::RangeToInclusive<usize>) -> &mut str {
1667-
IndexMut::index_mut(&mut **self, index)
1668-
}
1669-
}
16701638

16711639
#[stable(feature = "rust1", since = "1.0.0")]
16721640
impl ops::Deref for String {

branches/beta/src/libcollections/vec.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,24 +1226,6 @@ impl<T> ops::Index<ops::RangeFull> for Vec<T> {
12261226
self
12271227
}
12281228
}
1229-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1230-
impl<T> ops::Index<ops::RangeInclusive<usize>> for Vec<T> {
1231-
type Output = [T];
1232-
1233-
#[inline]
1234-
fn index(&self, index: ops::RangeInclusive<usize>) -> &[T] {
1235-
Index::index(&**self, index)
1236-
}
1237-
}
1238-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1239-
impl<T> ops::Index<ops::RangeToInclusive<usize>> for Vec<T> {
1240-
type Output = [T];
1241-
1242-
#[inline]
1243-
fn index(&self, index: ops::RangeToInclusive<usize>) -> &[T] {
1244-
Index::index(&**self, index)
1245-
}
1246-
}
12471229

12481230
#[stable(feature = "rust1", since = "1.0.0")]
12491231
impl<T> ops::IndexMut<ops::Range<usize>> for Vec<T> {
@@ -1273,20 +1255,6 @@ impl<T> ops::IndexMut<ops::RangeFull> for Vec<T> {
12731255
self
12741256
}
12751257
}
1276-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1277-
impl<T> ops::IndexMut<ops::RangeInclusive<usize>> for Vec<T> {
1278-
#[inline]
1279-
fn index_mut(&mut self, index: ops::RangeInclusive<usize>) -> &mut [T] {
1280-
IndexMut::index_mut(&mut **self, index)
1281-
}
1282-
}
1283-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1284-
impl<T> ops::IndexMut<ops::RangeToInclusive<usize>> for Vec<T> {
1285-
#[inline]
1286-
fn index_mut(&mut self, index: ops::RangeToInclusive<usize>) -> &mut [T] {
1287-
IndexMut::index_mut(&mut **self, index)
1288-
}
1289-
}
12901258

12911259
#[stable(feature = "rust1", since = "1.0.0")]
12921260
impl<T> ops::Deref for Vec<T> {

branches/beta/src/libcollectionstest/str.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -346,26 +346,6 @@ fn test_slice_fail() {
346346
&"中华Việt Nam"[0..2];
347347
}
348348

349-
const LOREM_PARAGRAPH: &'static str = "\
350-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem sit amet dolor \
351-
ultricies condimentum. Praesent iaculis purus elit, ac malesuada quam malesuada in. Duis sed orci \
352-
eros. Suspendisse sit amet magna mollis, mollis nunc luctus, imperdiet mi. Integer fringilla non \
353-
sem ut lacinia. Fusce varius tortor a risus porttitor hendrerit. Morbi mauris dui, ultricies nec \
354-
tempus vel, gravida nec quam.";
355-
356-
// check the panic includes the prefix of the sliced string
357-
#[test]
358-
#[should_panic(expected="Lorem ipsum dolor sit amet")]
359-
fn test_slice_fail_truncated_1() {
360-
&LOREM_PARAGRAPH[..1024];
361-
}
362-
// check the truncation in the panic message
363-
#[test]
364-
#[should_panic(expected="luctus, im`[...] do not lie on character boundary")]
365-
fn test_slice_fail_truncated_2() {
366-
&LOREM_PARAGRAPH[..1024];
367-
}
368-
369349
#[test]
370350
fn test_slice_from() {
371351
assert_eq!(&"abcd"[0..], "abcd");

branches/beta/src/libcore/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! The `Clone` trait for types that cannot be 'implicitly copied'
11+
//! The `Clone` trait for types that cannot be 'implicitly copied'.
1212
//!
1313
//! In Rust, some simple types are "implicitly copyable" and when you
1414
//! assign them or pass them as arguments, the receiver will get a copy,

0 commit comments

Comments
 (0)