Skip to content

Commit 98ba3aa

Browse files
committed
---
yaml --- r: 275188 b: refs/heads/stable c: 3358fb1 h: refs/heads/master
1 parent d6c7345 commit 98ba3aa

Some content is hidden

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

71 files changed

+699
-869
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: f6f050d09003a4c7895f44fed3a7c6cdce8f2949
32+
refs/heads/stable: 3358fb11da258007d26cc27364455c610088d630
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/mk/cfg/armv7-unknown-linux-gnueabihf.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ CFG_UNIXY_armv7-unknown-linux-gnueabihf := 1
2121
CFG_LDPATH_armv7-unknown-linux-gnueabihf :=
2222
CFG_RUN_armv7-unknown-linux-gnueabihf=$(2)
2323
CFG_RUN_TARG_armv7-unknown-linux-gnueabihf=$(call CFG_RUN_armv7-unknown-linux-gnueabihf,,$(2))
24-
RUSTC_FLAGS_armv7-unknown-linux-gnueabihf :=
24+
RUSTC_FLAGS_armv7-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp2,+neon
2525
RUSTC_CROSS_FLAGS_armv7-unknown-linux-gnueabihf :=
2626
CFG_GNU_TRIPLE_armv7-unknown-linux-gnueabihf := armv7-unknown-linux-gnueabihf

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,10 @@ for i in (1..100).filter(|&x| x % 2 == 0) {
311311
```
312312

313313
This will print all of the even numbers between one and a hundred.
314-
(Note that, unlike `map`, the closure passed to `filter` is passed a reference
315-
to the element instead of the element itself. The filter predicate here uses
316-
the `&x` pattern to extract the integer. The filter closure is passed a
317-
reference because it returns `true` or `false` instead of the element,
318-
so the `filter` implementation must retain ownership to put the elements
319-
into the newly constructed iterator.)
314+
(Note that because `filter` doesn't consume the elements that are
315+
being iterated over, it is passed a reference to each element, and
316+
thus the filter predicate uses the `&x` pattern to extract the integer
317+
itself.)
320318

321319
You can chain all three things together: start with an iterator, adapt it
322320
a few times, and then consume the result. Check it out:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ this point of time). These two parts of the vector (the one on the stack and
157157
one on the heap) must agree with each other at all times with regards to
158158
things like the length, capacity etc.
159159

160-
When we move `v` to `v2`, Rust actually does a bitwise copy of the vector
160+
When we move `v` to `v2`, rust actually does a bitwise copy of the vector
161161
object `v` into the stack allocation represented by `v2`. This shallow copy
162162
does not create a copy of the heap allocation containing the actual data.
163163
Which means that there would be two pointers to the contents of the vector

branches/stable/src/doc/nomicon/other-reprs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ These reprs have no effect on a struct.
5757

5858
# repr(packed)
5959

60-
`repr(packed)` forces Rust to strip any padding, and only align the type to a
60+
`repr(packed)` forces rust to strip any padding, and only align the type to a
6161
byte. This may improve the memory footprint, but will likely have other negative
6262
side-effects.
6363

branches/stable/src/doc/reference.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ extern crate std as ruststd; // linking to 'std' under another name
841841

842842
A _use declaration_ creates one or more local name bindings synonymous with
843843
some other [path](#paths). Usually a `use` declaration is used to shorten the
844-
path required to refer to a module item. These declarations may appear in
845-
[modules](#modules) and [blocks](grammar.html#block-expressions), usually at the top.
844+
path required to refer to a module item. These declarations may appear at the
845+
top of [modules](#modules) and [blocks](grammar.html#block-expressions).
846846

847847
> **Note**: Unlike in many languages,
848848
> `use` declarations in Rust do *not* declare linkage dependency with external crates.
@@ -1764,7 +1764,7 @@ pub mod submodule {
17641764
# fn main() {}
17651765
```
17661766

1767-
For a Rust program to pass the privacy checking pass, all paths must be valid
1767+
For a rust program to pass the privacy checking pass, all paths must be valid
17681768
accesses given the two rules above. This includes all use statements,
17691769
expressions, types, etc.
17701770

@@ -3564,9 +3564,8 @@ Each instance of a trait object includes:
35643564
each method of `SomeTrait` that `T` implements, a pointer to `T`'s
35653565
implementation (i.e. a function pointer).
35663566

3567-
The purpose of trait objects is to permit "late binding" of methods. Calling a
3568-
method on a trait object results in virtual dispatch at runtime: that is, a
3569-
function pointer is loaded from the trait object vtable and invoked indirectly.
3567+
The purpose of trait objects is to permit "late binding" of methods. A call to
3568+
a method on a trait object is only resolved to a vtable entry at compile time.
35703569
The actual implementation for each vtable entry can vary on an object-by-object
35713570
basis.
35723571

branches/stable/src/etc/licenseck.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# except according to those terms.
1010

1111
import re
12-
import os
1312

1413
license_re = re.compile(
1514
u"""(#|//) Copyright .* The Rust Project Developers. See the COPYRIGHT
@@ -41,9 +40,8 @@
4140
]
4241

4342
def check_license(name, contents):
44-
name = os.path.normpath(name)
4543
# Whitelist check
46-
if any(name.endswith(os.path.normpath(e)) for e in exceptions):
44+
if any(name.endswith(e) for e in exceptions):
4745
return True
4846

4947
# Xfail check

branches/stable/src/etc/tidy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ def interesting_file(f):
122122
'src/liblibc',
123123
}
124124

125-
dirpath = os.path.normpath(dirpath)
126-
if any(os.path.normpath(d) in dirpath for d in skippable_dirs):
125+
if any(d in dirpath for d in skippable_dirs):
127126
continue
128127

129128
file_names = [os.path.join(dirpath, f) for f in filenames

branches/stable/src/libcollections/borrow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ pub enum Cow<'a, B: ?Sized + 'a>
9595
{
9696
/// Borrowed data.
9797
#[stable(feature = "rust1", since = "1.0.0")]
98-
Borrowed(#[stable(feature = "rust1", since = "1.0.0")] &'a B),
98+
Borrowed(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a B),
9999

100100
/// Owned data.
101101
#[stable(feature = "rust1", since = "1.0.0")]
102102
Owned(
103-
#[stable(feature = "rust1", since = "1.0.0")] <B as ToOwned>::Owned
103+
#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] <B as ToOwned>::Owned
104104
),
105105
}
106106

branches/stable/src/libcollections/btree/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ pub enum Entry<'a, K: 'a, V: 'a> {
238238
/// A vacant Entry
239239
#[stable(feature = "rust1", since = "1.0.0")]
240240
Vacant(
241-
#[stable(feature = "rust1", since = "1.0.0")] VacantEntry<'a, K, V>
241+
#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] VacantEntry<'a, K, V>
242242
),
243243

244244
/// An occupied Entry
245245
#[stable(feature = "rust1", since = "1.0.0")]
246246
Occupied(
247-
#[stable(feature = "rust1", since = "1.0.0")] OccupiedEntry<'a, K, V>
247+
#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] OccupiedEntry<'a, K, V>
248248
),
249249
}
250250

branches/stable/src/libcollections/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl<T> [T] {
407407
}
408408

409409
/// Returns an iterator over `size` elements of the slice at a
410-
/// time. The chunks are slices and do not overlap. If `size` does not divide the
410+
/// time. The chunks do not overlap. If `size` does not divide the
411411
/// length of the slice, then the last chunk will not have length
412412
/// `size`.
413413
///
@@ -433,7 +433,7 @@ impl<T> [T] {
433433
}
434434

435435
/// Returns an iterator over `chunk_size` elements of the slice at a time.
436-
/// The chunks are mutable slices, and do not overlap. If `chunk_size` does
436+
/// The chunks are mutable and do not overlap. If `chunk_size` does
437437
/// not divide the length of the slice, then the last chunk will not
438438
/// have length `chunk_size`.
439439
///

branches/stable/src/libcollections/vec.rs

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@
5959
6060
#![stable(feature = "rust1", since = "1.0.0")]
6161

62+
use alloc::raw_vec::RawVec;
6263
use alloc::boxed::Box;
6364
use alloc::heap::EMPTY;
64-
use alloc::raw_vec::RawVec;
65-
use borrow::ToOwned;
6665
use core::cmp::Ordering;
6766
use core::fmt;
6867
use core::hash::{self, Hash};
@@ -135,49 +134,6 @@ use super::range::RangeArgument;
135134
/// }
136135
/// ```
137136
///
138-
/// # Indexing
139-
///
140-
/// The Vec type allows to access values by index, because it implements the
141-
/// `Index` trait. An example will be more explicit:
142-
///
143-
/// ```
144-
/// let v = vec!(0, 2, 4, 6);
145-
/// println!("{}", v[1]); // it will display '2'
146-
/// ```
147-
///
148-
/// However be careful: if you try to access an index which isn't in the Vec,
149-
/// your software will panic! You cannot do this:
150-
///
151-
/// ```ignore
152-
/// let v = vec!(0, 2, 4, 6);
153-
/// println!("{}", v[6]); // it will panic!
154-
/// ```
155-
///
156-
/// In conclusion: always check if the index you want to get really exists
157-
/// before doing it.
158-
///
159-
/// # Slicing
160-
///
161-
/// A Vec can be mutable. Slices, on the other hand, are read-only objects.
162-
/// To get a slice, use "&". Example:
163-
///
164-
/// ```
165-
/// fn read_slice(slice: &[usize]) {
166-
/// // ...
167-
/// }
168-
///
169-
/// let v = vec!(0, 1);
170-
/// read_slice(&v);
171-
///
172-
/// // ... and that's all!
173-
/// // you can also do it like this:
174-
/// let x : &[usize] = &v;
175-
/// ```
176-
///
177-
/// In Rust, it's more common to pass slices as arguments rather than vectors
178-
/// when you just want to provide a read access. The same goes for String and
179-
/// &str.
180-
///
181137
/// # Capacity and reallocation
182138
///
183139
/// The capacity of a vector is the amount of space allocated for any future
@@ -1677,15 +1633,6 @@ impl<T> DoubleEndedIterator for IntoIter<T> {
16771633
#[stable(feature = "rust1", since = "1.0.0")]
16781634
impl<T> ExactSizeIterator for IntoIter<T> {}
16791635

1680-
#[stable(feature = "vec_into_iter_clone", since = "1.8.0")]
1681-
impl<T: Clone> Clone for IntoIter<T> {
1682-
fn clone(&self) -> IntoIter<T> {
1683-
unsafe {
1684-
slice::from_raw_parts(self.ptr, self.len()).to_owned().into_iter()
1685-
}
1686-
}
1687-
}
1688-
16891636
#[stable(feature = "rust1", since = "1.0.0")]
16901637
impl<T> Drop for IntoIter<T> {
16911638
#[unsafe_destructor_blind_to_params]

branches/stable/src/libcollectionstest/vec.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -467,24 +467,6 @@ fn test_into_iter_count() {
467467
assert_eq!(vec![1, 2, 3].into_iter().count(), 3);
468468
}
469469

470-
#[test]
471-
fn test_into_iter_clone() {
472-
fn iter_equal<I: Iterator<Item=i32>>(it: I, slice: &[i32]) {
473-
let v: Vec<i32> = it.collect();
474-
assert_eq!(&v[..], slice);
475-
}
476-
let mut it = vec![1, 2, 3].into_iter();
477-
iter_equal(it.clone(), &[1, 2, 3]);
478-
assert_eq!(it.next(), Some(1));
479-
let mut it = it.rev();
480-
iter_equal(it.clone(), &[3, 2]);
481-
assert_eq!(it.next(), Some(3));
482-
iter_equal(it.clone(), &[2]);
483-
assert_eq!(it.next(), Some(2));
484-
iter_equal(it.clone(), &[]);
485-
assert_eq!(it.next(), None);
486-
}
487-
488470
#[test]
489471
fn test_cow_from() {
490472
let borrowed: &[_] = &["borrowed", "(slice)"];

branches/stable/src/libcore/intrinsics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,5 +586,8 @@ extern "rust-intrinsic" {
586586
/// platforms this is a `*mut *mut T` which is filled in by the compiler and
587587
/// on MSVC it's `*mut [usize; 2]`. For more information see the compiler's
588588
/// source as well as std's catch implementation.
589+
#[cfg(not(stage0))]
589590
pub fn try(f: fn(*mut u8), data: *mut u8, local_ptr: *mut u8) -> i32;
591+
#[cfg(stage0)]
592+
pub fn try(f: fn(*mut u8), data: *mut u8) -> *mut u8;
590593
}

branches/stable/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub enum Option<T> {
169169
None,
170170
/// Some value `T`
171171
#[stable(feature = "rust1", since = "1.0.0")]
172-
Some(#[stable(feature = "rust1", since = "1.0.0")] T)
172+
Some(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T)
173173
}
174174

175175
/////////////////////////////////////////////////////////////////////////////

branches/stable/src/libcore/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ use option::Option::{self, None, Some};
250250
pub enum Result<T, E> {
251251
/// Contains the success value
252252
#[stable(feature = "rust1", since = "1.0.0")]
253-
Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
253+
Ok(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T),
254254

255255
/// Contains the error value
256256
#[stable(feature = "rust1", since = "1.0.0")]
257-
Err(#[stable(feature = "rust1", since = "1.0.0")] E)
257+
Err(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] E)
258258
}
259259

260260
/////////////////////////////////////////////////////////////////////////////

branches/stable/src/libgetopts/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,9 @@ impl Matches {
331331
/// Returns the string argument supplied to one of several matching options or `None`.
332332
pub fn opts_str(&self, names: &[String]) -> Option<String> {
333333
for nm in names {
334-
if let Some(Val(ref s)) = self.opt_val(&nm[..]) {
335-
return Some(s.clone())
334+
match self.opt_val(&nm[..]) {
335+
Some(Val(ref s)) => return Some(s.clone()),
336+
_ => (),
336337
}
337338
}
338339
None

branches/stable/src/liblibc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 16f1c190afbc7605ed50a40f802189e436de68f6
1+
Subproject commit 1b1eea2cdd77c63d73ba0b09b905a91910d1c992

branches/stable/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn target() -> Target {
2222
target_vendor: "unknown".to_string(),
2323

2424
options: TargetOptions {
25-
features: "+v7,+vfp3,+neon".to_string(),
25+
features: "+v7,+vfp2,+neon".to_string(),
2626
cpu: "cortex-a8".to_string(),
2727
.. base
2828
}

0 commit comments

Comments
 (0)