Skip to content

Commit 1c50414

Browse files
committed
---
yaml --- r: 274135 b: refs/heads/stable c: b740c55 h: refs/heads/master i: 274133: 4656524 274131: 9a26112 274127: 3f19108
1 parent 42f19c4 commit 1c50414

File tree

47 files changed

+850
-1059
lines changed

Some content is hidden

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

47 files changed

+850
-1059
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: 62c8256b9f6f219712a2403e7b7cf1e67a5a31d4
32+
refs/heads/stable: b740c557e2864719f8ef5953142cbe53fd3b51dd
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ DEPS_rustc_front := std syntax log serialize
102102
DEPS_rustc_lint := rustc log syntax
103103
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
104104
DEPS_rustc_metadata := rustc rustc_front syntax rbml
105-
DEPS_rustc_passes := syntax rustc core rustc_front
105+
DEPS_rustc_passes := syntax rustc core
106106
DEPS_rustc_mir := rustc rustc_front syntax
107107
DEPS_rustc_resolve := arena rustc rustc_front log syntax
108108
DEPS_rustc_platform_intrinsics := rustc rustc_llvm

branches/stable/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.8.0
16+
CFG_RELEASE_NUM=1.7.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

branches/stable/src/liballoc/arc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ pub struct Weak<T: ?Sized> {
149149
_ptr: Shared<ArcInner<T>>,
150150
}
151151

152-
#[stable(feature = "arc_weak", since = "1.4.0")]
152+
#[stable(feature = "rust1", since = "1.0.0")]
153153
unsafe impl<T: ?Sized + Sync + Send> Send for Weak<T> {}
154-
#[stable(feature = "arc_weak", since = "1.4.0")]
154+
#[stable(feature = "rust1", since = "1.0.0")]
155155
unsafe impl<T: ?Sized + Sync + Send> Sync for Weak<T> {}
156156

157157
#[unstable(feature = "coerce_unsized", issue = "27732")]
158158
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
159159

160-
#[stable(feature = "arc_weak", since = "1.4.0")]
160+
#[stable(feature = "rust1", since = "1.0.0")]
161161
impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
162162
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
163163
write!(f, "(Weak)")
@@ -681,7 +681,7 @@ impl<T: ?Sized> Clone for Weak<T> {
681681
}
682682
}
683683

684-
#[stable(feature = "arc_weak", since = "1.4.0")]
684+
#[stable(feature = "rust1", since = "1.0.0")]
685685
impl<T: ?Sized> Drop for Weak<T> {
686686
/// Drops the `Weak<T>`.
687687
///

branches/stable/src/liballoc/rc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,9 @@ pub struct Weak<T: ?Sized> {
715715
_ptr: Shared<RcBox<T>>,
716716
}
717717

718-
#[stable(feature = "rc_weak", since = "1.4.0")]
718+
#[stable(feature = "rust1", since = "1.0.0")]
719719
impl<T: ?Sized> !marker::Send for Weak<T> {}
720-
#[stable(feature = "rc_weak", since = "1.4.0")]
720+
#[stable(feature = "rust1", since = "1.0.0")]
721721
impl<T: ?Sized> !marker::Sync for Weak<T> {}
722722

723723
#[unstable(feature = "coerce_unsized", issue = "27732")]
@@ -753,7 +753,7 @@ impl<T: ?Sized> Weak<T> {
753753
}
754754
}
755755

756-
#[stable(feature = "rc_weak", since = "1.4.0")]
756+
#[stable(feature = "rust1", since = "1.0.0")]
757757
impl<T: ?Sized> Drop for Weak<T> {
758758
/// Drops the `Weak<T>`.
759759
///
@@ -819,7 +819,7 @@ impl<T: ?Sized> Clone for Weak<T> {
819819
}
820820
}
821821

822-
#[stable(feature = "rc_weak", since = "1.4.0")]
822+
#[stable(feature = "rust1", since = "1.0.0")]
823823
impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
824824
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
825825
write!(f, "(Weak)")

branches/stable/src/libcore/str/mod.rs

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -244,34 +244,6 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
244244
Ok(unsafe { from_utf8_unchecked(v) })
245245
}
246246

247-
/// Forms a str from a pointer and a length.
248-
///
249-
/// The `len` argument is the number of bytes in the string.
250-
///
251-
/// # Safety
252-
///
253-
/// This function is unsafe as there is no guarantee that the given pointer is
254-
/// valid for `len` bytes, nor whether the lifetime inferred is a suitable
255-
/// lifetime for the returned str.
256-
///
257-
/// The data must be valid UTF-8
258-
///
259-
/// `p` must be non-null, even for zero-length str.
260-
///
261-
/// # Caveat
262-
///
263-
/// The lifetime for the returned str is inferred from its usage. To
264-
/// prevent accidental misuse, it's suggested to tie the lifetime to whichever
265-
/// source lifetime is safe in the context, such as by providing a helper
266-
/// function taking the lifetime of a host value for the str, or by explicit
267-
/// annotation.
268-
/// Performs the same functionality as `from_raw_parts`, except that a mutable
269-
/// str is returned.
270-
///
271-
unsafe fn from_raw_parts_mut<'a>(p: *mut u8, len: usize) -> &'a mut str {
272-
mem::transmute::<&mut [u8], &mut str>(slice::from_raw_parts_mut(p, len))
273-
}
274-
275247
/// Converts a slice of bytes to a string slice without checking
276248
/// that the string contains valid UTF-8.
277249
///
@@ -1871,10 +1843,10 @@ impl StrExt for str {
18711843
// is_char_boundary checks that the index is in [0, .len()]
18721844
if self.is_char_boundary(mid) {
18731845
let len = self.len();
1874-
let ptr = self.as_ptr() as *mut u8;
18751846
unsafe {
1876-
(from_raw_parts_mut(ptr, mid),
1877-
from_raw_parts_mut(ptr.offset(mid as isize), len - mid))
1847+
let self2: &mut str = mem::transmute_copy(&self);
1848+
(self.slice_mut_unchecked(0, mid),
1849+
self2.slice_mut_unchecked(mid, len))
18781850
}
18791851
} else {
18801852
slice_error_fail(self, 0, mid)

0 commit comments

Comments
 (0)