X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Falloc%2Fsrc%2Fslice.rs;h=02a47c57b8ae3bcec2a7c27e8018b1d922d53543;hb=c5f2c4476e1c72315e7bf405a2e15b5c9489c001;hp=31edbe0c5afd5d299e294900a5799648f2affc5d;hpb=f4a7ce997a1d7546d2b737f8b87d36907bcea2ad;p=rust.git diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs index 31edbe0c5af..5bdf36a63a2 100644 --- a/library/alloc/src/slice.rs +++ b/library/alloc/src/slice.rs @@ -153,7 +153,7 @@ // functions are actually methods that are in `impl [T]` but not in // `core::slice::SliceExt` - we need to supply these functions for the // `test_permutations` test -mod hack { +pub(crate) mod hack { use core::alloc::Allocator; use crate::boxed::Box; @@ -657,7 +657,7 @@ pub fn join(&self, sep: Separator) -> >::Outp /// ``` #[rustc_allow_incoherent_impl] #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_deprecated(since = "1.3.0", reason = "renamed to join")] + #[deprecated(since = "1.3.0", note = "renamed to join")] pub fn connect(&self, sep: Separator) -> >::Output where Self: Join,