Skip to content

Commit 544d690

Browse files
committed
---
yaml --- r: 194559 b: refs/heads/snap-stage3 c: 3577555 h: refs/heads/master i: 194557: 9485962 194555: 16b2471 194551: 0521b1e 194543: ead7514 194527: 96fd58b 194495: a04c0f0 194431: c3f4fb5 194303: ec5118a 194047: e8752a7 193535: dba2ce2 192511: 68c3002 v: v3
1 parent ad5258d commit 544d690

File tree

297 files changed

+1504
-4016
lines changed

Some content is hidden

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

297 files changed

+1504
-4016
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 242ed0b7c0f6a21096f2cc3e1ad1bdb176d02545
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6968ccfd7a9a8f568959defe7408532d8607a0bb
4+
refs/heads/snap-stage3: 3577555742c0ebfa345a6a1c633f79bcc084a416
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/mk/tests.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,6 @@ ifeq ($(CFG_OSTYPE),apple-darwin)
569569
CTEST_DISABLE_debuginfo-gdb = "gdb on darwin needs root"
570570
endif
571571

572-
ifeq ($(findstring android, $(CFG_TARGET)), android)
573-
CTEST_DISABLE_debuginfo-gdb =
574-
CTEST_DISABLE_debuginfo-lldb = "lldb tests are disabled on android"
575-
endif
576-
577572
# CTEST_DISABLE_NONSELFHOST_$(TEST_GROUP), if set, will cause that
578573
# test group to be disabled *unless* the target is able to build a
579574
# compiler (i.e. when the target triple is in the set of of host

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

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

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/src/liballoc/arc.rs

Lines changed: 5 additions & 6 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
@@ -354,8 +354,7 @@ impl<T> Drop for Arc<T> {
354354
// more than once (but it is guaranteed to be zeroed after the first if
355355
// it's run more than once)
356356
let ptr = *self._ptr;
357-
// if ptr.is_null() { return }
358-
if ptr.is_null() || ptr as usize == mem::POST_DROP_USIZE { return }
357+
if ptr.is_null() { return }
359358

360359
// Because `fetch_sub` is already atomic, we do not need to synchronize
361360
// with other threads unless we are going to delete the object. This
@@ -389,7 +388,7 @@ impl<T> Drop for Arc<T> {
389388

390389
#[unstable(feature = "alloc",
391390
reason = "Weak pointers may not belong in this module.")]
392-
impl<T> Weak<T> {
391+
impl<T: Sync + Send> Weak<T> {
393392
/// Upgrades a weak reference to a strong reference.
394393
///
395394
/// Upgrades the `Weak<T>` reference to an `Arc<T>`, if possible.
@@ -455,7 +454,7 @@ impl<T: Sync + Send> Clone for Weak<T> {
455454

456455
#[unsafe_destructor]
457456
#[stable(feature = "rust1", since = "1.0.0")]
458-
impl<T> Drop for Weak<T> {
457+
impl<T: Sync + Send> Drop for Weak<T> {
459458
/// Drops the `Weak<T>`.
460459
///
461460
/// This will decrement the weak reference count.
@@ -486,7 +485,7 @@ impl<T> Drop for Weak<T> {
486485
let ptr = *self._ptr;
487486

488487
// see comments above for why this check is here
489-
if ptr.is_null() || ptr as usize == mem::POST_DROP_USIZE { return }
488+
if ptr.is_null() { return }
490489

491490
// If we find out that we were the last weak pointer, then its time to
492491
// deallocate the data entirely. See the discussion in Arc::drop() about

branches/snap-stage3/src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#![feature(box_syntax)]
7676
#![feature(optin_builtin_traits)]
7777
#![feature(unboxed_closures)]
78-
#![feature(unsafe_no_drop_flag, filling_drop)]
78+
#![feature(unsafe_no_drop_flag)]
7979
#![feature(core)]
8080
#![feature(unique)]
8181
#![cfg_attr(test, feature(test, alloc, rustc_private))]

0 commit comments

Comments
 (0)