Skip to content

Commit c712d38

Browse files
authored
Rollup merge of rust-lang#59955 - RalfJung:stdsimd, r=alexcrichton
bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent I made `intra_doc_link_resolution_failure` warn so that it would properly respect `deny-warnings = false` in `config.toml`. `#[warn]` still become errors with `-D warnings` so I thought this was fine. Turns out however that we don't pass `-D warnings` when running rustdoc, so for additional rustdoc-lints we need to set them to `deny`. Also sue the opportunity to make the lint flags more consistent between libcore, liballoc, libstd. Cc @gnzlbg for the *big* stdsimd update.
2 parents cf1697f + 50c615b commit c712d38

File tree

7 files changed

+23
-9
lines changed

7 files changed

+23
-9
lines changed

src/liballoc/borrow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl<'a, B: ?Sized> Borrow<B> for Cow<'a, B>
3232
/// from any borrow of a given type.
3333
#[stable(feature = "rust1", since = "1.0.0")]
3434
pub trait ToOwned {
35+
/// The resulting type after obtaining ownership.
3536
#[stable(feature = "rust1", since = "1.0.0")]
3637
type Owned: Borrow<Self>;
3738

src/liballoc/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ impl<A, F: Fn<A> + ?Sized> Fn<A> for Box<F> {
760760
#[unstable(feature = "fnbox",
761761
reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
762762
pub trait FnBox<A>: FnOnce<A> {
763+
/// Performs the call operation.
763764
fn call_box(self: Box<Self>, args: A) -> Self::Output;
764765
}
765766

src/liballoc/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@
5858
#![no_std]
5959
#![needs_allocator]
6060

61-
#![deny(rust_2018_idioms)]
62-
#![allow(explicit_outlives_requirements)]
63-
6461
#![warn(deprecated_in_future)]
65-
#![warn(intra_doc_link_resolution_failure)]
62+
#![warn(missing_docs)]
6663
#![warn(missing_debug_implementations)]
64+
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
65+
66+
#![deny(rust_2018_idioms)]
67+
#![allow(explicit_outlives_requirements)]
6768

6869
#![cfg_attr(not(test), feature(generator_trait))]
6970
#![cfg_attr(test, feature(test))]

src/liballoc/slice.rs

+10
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,16 @@ pub trait SliceConcatExt<T: ?Sized> {
570570
#[stable(feature = "rename_connect_to_join", since = "1.3.0")]
571571
fn join(&self, sep: &T) -> Self::Output;
572572

573+
/// Flattens a slice of `T` into a single value `Self::Output`, placing a
574+
/// given separator between each.
575+
///
576+
/// # Examples
577+
///
578+
/// ```
579+
/// # #![allow(deprecated)]
580+
/// assert_eq!(["hello", "world"].connect(" "), "hello world");
581+
/// assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
582+
/// ```
573583
#[stable(feature = "rust1", since = "1.0.0")]
574584
#[rustc_deprecated(since = "1.3.0", reason = "renamed to join")]
575585
fn connect(&self, sep: &T) -> Self::Output;

src/libcore/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060

6161
#![warn(deprecated_in_future)]
6262
#![warn(missing_docs)]
63-
#![warn(intra_doc_link_resolution_failure)]
6463
#![warn(missing_debug_implementations)]
64+
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
6565

6666
#![feature(allow_internal_unstable)]
6767
#![feature(arbitrary_self_types)]

src/libstd/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@
205205
// Don't link to std. We are std.
206206
#![no_std]
207207

208-
#![deny(missing_docs)]
209-
#![deny(intra_doc_link_resolution_failure)]
210-
#![deny(missing_debug_implementations)]
208+
//#![warn(deprecated_in_future)] // FIXME: std still has quite a few uses of `mem::uninitialized`
209+
#![warn(missing_docs)]
210+
#![warn(missing_debug_implementations)]
211+
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
211212

212213
#![deny(rust_2018_idioms)]
213214
#![allow(explicit_outlives_requirements)]

src/stdsimd

0 commit comments

Comments
 (0)