requested/proposed changes
This commit is contained in:
parent
5ef202520f
commit
c6bb62810a
5 changed files with 7 additions and 8 deletions
|
@ -32,7 +32,7 @@ where
|
|||
/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
|
||||
/// from any borrow of a given type.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "to_owned_trait")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "ToOwned")]
|
||||
pub trait ToOwned {
|
||||
/// The resulting type after obtaining ownership.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
@ -220,6 +220,7 @@ mod hack {
|
|||
}
|
||||
|
||||
#[lang = "slice_alloc"]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "slice")]
|
||||
#[cfg(not(test))]
|
||||
impl<T> [T] {
|
||||
/// Sorts the slice.
|
||||
|
@ -442,7 +443,6 @@ impl<T> [T] {
|
|||
/// // Here, `s` and `x` can be modified independently.
|
||||
/// ```
|
||||
#[rustc_conversion_suggestion]
|
||||
#[rustc_diagnostic_item = "slice_to_vec_method"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
pub fn to_vec(&self) -> Vec<T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue