1
Fork 0

requested/proposed changes

This commit is contained in:
Andrea Nall 2021-02-15 22:58:03 +00:00
parent 5ef202520f
commit c6bb62810a
5 changed files with 7 additions and 8 deletions

View file

@ -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")]

View file

@ -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>