From d2c91a1a6d00949929eb9e913f199eb520f792c4 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Tue, 1 Jan 2019 12:53:07 -0500 Subject: Fix broken links to second edition TRPL. Fixes https://github.com/rust-lang/rust/issues/57104. --- src/libcore/marker.rs | 2 +- src/libcore/ops/deref.rs | 4 ++-- src/libcore/ops/drop.rs | 2 +- src/libcore/ops/function.rs | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 53af924376b..65752ba0321 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -85,7 +85,7 @@ impl !Send for *mut T { } on(parent_trait="std::path::Path", label="borrow the `Path` instead"), message="the size for values of type `{Self}` cannot be known at compilation time", label="doesn't have a size known at compile-time", - note="to learn more, visit Deref for &mut T { /// [book] as well as the reference sections on [the dereference operator] /// [ref-deref-op], [method resolution] and [type coercions]. /// -/// [book]: ../../book/second-edition/ch15-02-deref.html +/// [book]: ../../book/ch15-02-deref.html /// [`Deref`]: trait.Deref.html /// [more]: #more-on-deref-coercion /// [ref-deref-op]: ../../reference/expressions/operator-expr.html#the-dereference-operator diff --git a/src/libcore/ops/drop.rs b/src/libcore/ops/drop.rs index 8d16fdebb3e..eae63ea2390 100644 --- a/src/libcore/ops/drop.rs +++ b/src/libcore/ops/drop.rs @@ -11,7 +11,7 @@ /// Refer to [the chapter on `Drop` in *The Rust Programming Language*][book] /// for some more elaboration. /// -/// [book]: ../../book/second-edition/ch15-03-drop.html +/// [book]: ../../book/ch15-03-drop.html /// /// # Examples /// diff --git a/src/libcore/ops/function.rs b/src/libcore/ops/function.rs index ec2e53412a0..3a1d765f7b8 100644 --- a/src/libcore/ops/function.rs +++ b/src/libcore/ops/function.rs @@ -27,7 +27,7 @@ /// `Fn(usize, bool) -> usize`). Those interested in the technical details of /// this can refer to [the relevant section in the *Rustonomicon*][nomicon]. /// -/// [book]: ../../book/second-edition/ch13-01-closures.html +/// [book]: ../../book/ch13-01-closures.html /// [`FnMut`]: trait.FnMut.html /// [`FnOnce`]: trait.FnOnce.html /// [function pointers]: ../../std/primitive.fn.html @@ -95,7 +95,7 @@ pub trait Fn : FnMut { /// `Fn(usize, bool) -> usize`). Those interested in the technical details of /// this can refer to [the relevant section in the *Rustonomicon*][nomicon]. /// -/// [book]: ../../book/second-edition/ch13-01-closures.html +/// [book]: ../../book/ch13-01-closures.html /// [`Fn`]: trait.Fn.html /// [`FnOnce`]: trait.FnOnce.html /// [function pointers]: ../../std/primitive.fn.html @@ -173,7 +173,7 @@ pub trait FnMut : FnOnce { /// `Fn(usize, bool) -> usize`). Those interested in the technical details of /// this can refer to [the relevant section in the *Rustonomicon*][nomicon]. /// -/// [book]: ../../book/second-edition/ch13-01-closures.html +/// [book]: ../../book/ch13-01-closures.html /// [`Fn`]: trait.Fn.html /// [`FnMut`]: trait.FnMut.html /// [function pointers]: ../../std/primitive.fn.html -- cgit 1.4.1-3-g733a5 From c0662a033e53106465c75b44adfa6a14304ea1ac Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Jan 2019 09:52:46 -0800 Subject: Update the stdsimd submodule Add a new cmpxchg16b intrinsics for x86_64! --- src/libcore/lib.rs | 1 + src/stdsimd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcore') diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 5ea765d3585..19bf4ab15bf 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -110,6 +110,7 @@ #![feature(aarch64_target_feature)] #![feature(wasm_target_feature)] #![feature(avx512_target_feature)] +#![cfg_attr(not(stage0), feature(cmpxchg16b_target_feature))] #![feature(const_slice_len)] #![feature(const_str_as_bytes)] #![feature(const_str_len)] diff --git a/src/stdsimd b/src/stdsimd index 513e067908f..ddb30221d79 160000 --- a/src/stdsimd +++ b/src/stdsimd @@ -1 +1 @@ -Subproject commit 513e067908f3e2eb8b31ad1c12b2e0a62817e557 +Subproject commit ddb30221d7985e813b4214d14c2a560ed6ee0991 -- cgit 1.4.1-3-g733a5 From 917985e7fe7721c43bd00c847b69828119b246a2 Mon Sep 17 00:00:00 2001 From: Dan Robertson Date: Thu, 3 Jan 2019 15:51:50 +0000 Subject: VaList::copy should not require a mutable ref VaList::copy does not need to take a mutable reference. The va_copy intrinsic takes a immutable reference. --- src/libcore/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore') diff --git a/src/libcore/ffi.rs b/src/libcore/ffi.rs index 899fae90946..0717a88b6b8 100644 --- a/src/libcore/ffi.rs +++ b/src/libcore/ffi.rs @@ -186,7 +186,7 @@ impl<'a> VaList<'a> { reason = "the `c_variadic` feature has not been properly tested on \ all supported platforms", issue = "27745")] - pub unsafe fn copy(&mut self, f: F) -> R + pub unsafe fn copy(&self, f: F) -> R where F: for<'copy> FnOnce(VaList<'copy>) -> R { #[cfg(any(all(not(target_arch = "aarch64"), not(target_arch = "powerpc"), not(target_arch = "x86_64")), -- cgit 1.4.1-3-g733a5