diff options
| author | Alexander Regueiro <alexreg@me.com> | 2019-03-26 17:34:32 +0000 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2019-05-20 16:12:49 +0100 |
| commit | 9f800457dda7ee9b8579394d1c07761f3008e573 (patch) | |
| tree | bb254d502d1f96b1cf06800da9321fdfd87cb9dd /src/liballoc | |
| parent | 16ef2957705392abd6a7d9ac46619863ac339ef1 (diff) | |
Ban multi-trait objects via trait aliases.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/slice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index 6eac8487401..8768f1ff081 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -123,12 +123,12 @@ pub use core::slice::{RChunks, RChunksMut, RChunksExact, RChunksExactMut}; //////////////////////////////////////////////////////////////////////////////// // HACK(japaric) needed for the implementation of `vec!` macro during testing -// NB see the hack module in this file for more details +// N.B., see the `hack` module in this file for more details. #[cfg(test)] pub use hack::into_vec; // HACK(japaric) needed for the implementation of `Vec::clone` during testing -// NB see the hack module in this file for more details +// N.B., see the `hack` module in this file for more details. #[cfg(test)] pub use hack::to_vec; @@ -376,7 +376,7 @@ impl<T> [T] { pub fn to_vec(&self) -> Vec<T> where T: Clone { - // NB see hack module in this file + // N.B., see the `hack` module in this file for more details. hack::to_vec(self) } @@ -397,7 +397,7 @@ impl<T> [T] { #[stable(feature = "rust1", since = "1.0.0")] #[inline] pub fn into_vec(self: Box<Self>) -> Vec<T> { - // NB see hack module in this file + // N.B., see the `hack` module in this file for more details. hack::into_vec(self) } |
