Skip to content

Commit a33f5f8

Browse files
committed
---
yaml --- r: 194203 b: refs/heads/beta c: 5fa4b4c h: refs/heads/master i: 194201: ee103ff 194199: a14fe9b v: v3
1 parent e48cbcb commit a33f5f8

File tree

211 files changed

+1116
-1875
lines changed

Some content is hidden

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

211 files changed

+1116
-1875
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: 91b633aa038008fdbee658a10182afdd794d2aa6
34+
refs/heads/beta: 5fa4b4c4af14e391d7f16b4968aa25cca7c617c6
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/doc/reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ be undesired.
12651265
* Sending signals
12661266
* Accessing/modifying the file system
12671267
* Unsigned integer overflow (well-defined as wrapping)
1268-
* Signed integer overflow (well-defined as twos complement representation
1268+
* Signed integer overflow (well-defined as two's complement representation
12691269
wrapping)
12701270

12711271
#### Diverging functions
@@ -2961,10 +2961,10 @@ meaning of the operators on standard types is given here.
29612961
: Exclusive or.
29622962
Calls the `bitxor` method of the `std::ops::BitXor` trait.
29632963
* `<<`
2964-
: Left shift.
2964+
: Logical left shift.
29652965
Calls the `shl` method of the `std::ops::Shl` trait.
29662966
* `>>`
2967-
: Right shift.
2967+
: Logical right shift.
29682968
Calls the `shr` method of the `std::ops::Shr` trait.
29692969

29702970
#### Lazy boolean operators

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* [More Strings](more-strings.md)
2323
* [Patterns](patterns.md)
2424
* [Method Syntax](method-syntax.md)
25-
* [Associated Types](associated-types.md)
2625
* [Closures](closures.md)
2726
* [Iterators](iterators.md)
2827
* [Generics](generics.md)

branches/beta/src/doc/trpl/associated-types.md

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ Otherwise, it is an error to elide an output lifetime.
513513

514514
### Examples
515515

516-
Here are some examples of functions with elided lifetimes. We've paired each
517-
example of an elided lifetime with its expanded form.
516+
Here are some examples of functions with elided lifetimes, and the version of
517+
what the elided lifetimes are expand to:
518518

519519
```{rust,ignore}
520520
fn print(s: &str); // elided

branches/beta/src/etc/libc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,6 @@ void posix88_consts() {
165165
put_const(S_IWUSR, int);
166166
put_const(S_IRUSR, int);
167167

168-
put_const(S_IRWXG, int);
169-
put_const(S_IXGRP, int);
170-
put_const(S_IWGRP, int);
171-
put_const(S_IRGRP, int);
172-
173-
put_const(S_IRWXO, int);
174-
put_const(S_IXOTH, int);
175-
put_const(S_IWOTH, int);
176-
put_const(S_IROTH, int);
177-
178168
#ifdef F_OK
179169
put_const(F_OK, int);
180170
#endif

branches/beta/src/liballoc/arc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl<T: Send + Sync + Clone> Arc<T> {
321321

322322
#[unsafe_destructor]
323323
#[stable(feature = "rust1", since = "1.0.0")]
324-
impl<T: Sync + Send> Drop for Arc<T> {
324+
impl<T> Drop for Arc<T> {
325325
/// Drops the `Arc<T>`.
326326
///
327327
/// This will decrement the strong reference count. If the strong reference
@@ -388,7 +388,7 @@ impl<T: Sync + Send> Drop for Arc<T> {
388388

389389
#[unstable(feature = "alloc",
390390
reason = "Weak pointers may not belong in this module.")]
391-
impl<T: Sync + Send> Weak<T> {
391+
impl<T> Weak<T> {
392392
/// Upgrades a weak reference to a strong reference.
393393
///
394394
/// Upgrades the `Weak<T>` reference to an `Arc<T>`, if possible.
@@ -454,7 +454,7 @@ impl<T: Sync + Send> Clone for Weak<T> {
454454

455455
#[unsafe_destructor]
456456
#[stable(feature = "rust1", since = "1.0.0")]
457-
impl<T: Sync + Send> Drop for Weak<T> {
457+
impl<T> Drop for Weak<T> {
458458
/// Drops the `Weak<T>`.
459459
///
460460
/// This will decrement the weak reference count.

branches/beta/src/libarena/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ impl<T> TypedArenaChunk<T> {
429429
// Destroy the next chunk.
430430
let next = self.next;
431431
let size = calculate_size::<T>(self.capacity);
432-
let self_ptr: *mut TypedArenaChunk<T> = self;
433-
deallocate(self_ptr as *mut u8, size,
432+
deallocate(self as *mut TypedArenaChunk<T> as *mut u8, size,
434433
mem::min_align_of::<TypedArenaChunk<T>>());
435434
if !next.is_null() {
436435
let capacity = (*next).capacity;

branches/beta/src/libcollections/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
html_playground_url = "http://play.rust-lang.org/")]
2525
#![doc(test(no_crate_inject))]
2626

27-
#![allow(trivial_casts)]
28-
#![allow(trivial_numeric_casts)]
2927
#![feature(alloc)]
3028
#![feature(box_syntax)]
3129
#![feature(box_patterns)]

branches/beta/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,8 @@ impl<T: PartialEq> Vec<T> {
11991199

12001200
// Avoid bounds checks by using unsafe pointers.
12011201
let p = self.as_mut_ptr();
1202-
let mut r: usize = 1;
1203-
let mut w: usize = 1;
1202+
let mut r = 1;
1203+
let mut w = 1;
12041204

12051205
while r < ln {
12061206
let p_r = p.offset(r as isize);

branches/beta/src/libcollectionstest/btree/set.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,15 @@ struct Counter<'a, 'b> {
4343
}
4444

4545
impl<'a, 'b, 'c> FnMut<(&'c i32,)> for Counter<'a, 'b> {
46+
type Output = bool;
47+
4648
extern "rust-call" fn call_mut(&mut self, (&x,): (&'c i32,)) -> bool {
4749
assert_eq!(x, self.expected[*self.i]);
4850
*self.i += 1;
4951
true
5052
}
5153
}
5254

53-
impl<'a, 'b, 'c> FnOnce<(&'c i32,)> for Counter<'a, 'b> {
54-
type Output = bool;
55-
56-
extern "rust-call" fn call_once(mut self, args: (&'c i32,)) -> bool {
57-
self.call_mut(args)
58-
}
59-
}
60-
6155
fn check<F>(a: &[i32], b: &[i32], expected: &[i32], f: F) where
6256
// FIXME Replace Counter with `Box<FnMut(_) -> _>`
6357
F: FnOnce(&BTreeSet<i32>, &BTreeSet<i32>, Counter) -> bool,

branches/beta/src/libcore/any.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ use marker::Sized;
8282
// Any trait
8383
///////////////////////////////////////////////////////////////////////////////
8484

85-
/// A type to emulate dynamic typing. See the [module-level documentation][mod] for more details.
85+
/// The `Any` trait is implemented by all `'static` types, and can be used for
86+
/// dynamic typing
8687
///
87-
/// Every type with no non-`'static` references implements `Any`.
88-
///
89-
/// [mod]: ../index.html
88+
/// Every type with no non-`'static` references implements `Any`, so `Any` can
89+
/// be used as a trait object to emulate the effects dynamic typing.
9090
#[stable(feature = "rust1", since = "1.0.0")]
9191
pub trait Any: 'static {
9292
/// Get the `TypeId` of `self`

branches/beta/src/libcore/cell.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -713,11 +713,7 @@ impl<T> UnsafeCell<T> {
713713
/// ```
714714
#[inline]
715715
#[stable(feature = "rust1", since = "1.0.0")]
716-
pub fn get(&self) -> *mut T {
717-
// FIXME(#23542) Replace with type ascription.
718-
#![allow(trivial_casts)]
719-
&self.value as *const T as *mut T
720-
}
716+
pub fn get(&self) -> *mut T { &self.value as *const T as *mut T }
721717

722718
/// Unwraps the value
723719
///

0 commit comments

Comments
 (0)