Skip to content

Commit 47ed7f4

Browse files
committed
---
yaml --- r: 194429 b: refs/heads/tmp c: 1663665 h: refs/heads/master i: 194427: 41e7101 v: v3
1 parent ea6037c commit 47ed7f4

File tree

178 files changed

+1136
-2289
lines changed

Some content is hidden

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

178 files changed

+1136
-2289
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: a3b13610c5b93d9ada072471a001a5613df6a960
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 5a5845dc010401dccb14954239ea60a2e27e8406
37+
refs/heads/tmp: 1663665be0f3e7b0bef782d72a3201cf6138e55b
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 28a0b25f424090255966273994748a9f9901059f
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/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/tmp/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/tmp/src/doc/trpl/associated-types.md

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

branches/tmp/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/tmp/src/doc/trpl/unsafe.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,15 @@ use std::ptr;
197197
198198
// Define a wrapper around the handle returned by the foreign code.
199199
// Unique<T> has the same semantics as Box<T>
200-
//
201-
// NB: For simplicity and correctness, we require that T has kind Send
202-
// (owned boxes relax this restriction).
203-
pub struct Unique<T: Send> {
200+
pub struct Unique<T> {
204201
// It contains a single raw, mutable pointer to the object in question.
205202
ptr: *mut T
206203
}
207204
208205
// Implement methods for creating and using the values in the box.
209206
207+
// NB: For simplicity and correctness, we require that T has kind Send
208+
// (owned boxes relax this restriction).
210209
impl<T: Send> Unique<T> {
211210
pub fn new(value: T) -> Unique<T> {
212211
unsafe {
@@ -240,11 +239,11 @@ impl<T: Send> Unique<T> {
240239
// Unique<T>, making the struct manage the raw pointer: when the
241240
// struct goes out of scope, it will automatically free the raw pointer.
242241
//
243-
// NB: This is an unsafe destructor; rustc will not normally allow
244-
// destructors to be associated with parameterized types (due to
245-
// historically failing to check them soundly). Note that the
246-
// `#[unsafe_destructor]` feature gate is currently required to use
247-
// unsafe destructors.
242+
// NB: This is an unsafe destructor, because rustc will not normally
243+
// allow destructors to be associated with parameterized types, due to
244+
// bad interaction with managed boxes. (With the Send restriction,
245+
// we don't have this problem.) Note that the `#[unsafe_destructor]`
246+
// feature gate is required to use unsafe destructors.
248247
#[unsafe_destructor]
249248
impl<T: Send> Drop for Unique<T> {
250249
fn drop(&mut self) {

branches/tmp/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/tmp/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> Drop for Arc<T> {
324+
impl<T: Sync + Send> 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> Drop for Arc<T> {
388388

389389
#[unstable(feature = "alloc",
390390
reason = "Weak pointers may not belong in this module.")]
391-
impl<T> Weak<T> {
391+
impl<T: Sync + Send> 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> Drop for Weak<T> {
457+
impl<T: Sync + Send> Drop for Weak<T> {
458458
/// Drops the `Weak<T>`.
459459
///
460460
/// This will decrement the weak reference count.

branches/tmp/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/tmp/src/libcollections/binary_heap.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,6 @@ impl<T: Ord> BinaryHeap<T> {
563563
pub fn is_empty(&self) -> bool { self.len() == 0 }
564564

565565
/// Clears the binary heap, returning an iterator over the removed elements.
566-
///
567-
/// The elements are removed in arbitrary order.
568566
#[inline]
569567
#[unstable(feature = "collections",
570568
reason = "matches collection reform specification, waiting for dust to settle")]

branches/tmp/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)]

0 commit comments

Comments
 (0)