Skip to content

Commit e0d9924

Browse files
committed
requested/proposed changes
1 parent f58a129 commit e0d9924

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

alloc/src/borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ where
3232
/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
3333
/// from any borrow of a given type.
3434
#[stable(feature = "rust1", since = "1.0.0")]
35-
#[cfg_attr(not(test), rustc_diagnostic_item = "to_owned_trait")]
35+
#[cfg_attr(not(test), rustc_diagnostic_item = "ToOwned")]
3636
pub trait ToOwned {
3737
/// The resulting type after obtaining ownership.
3838
#[stable(feature = "rust1", since = "1.0.0")]

alloc/src/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ mod hack {
220220
}
221221

222222
#[lang = "slice_alloc"]
223+
#[cfg_attr(not(test), rustc_diagnostic_item = "slice")]
223224
#[cfg(not(test))]
224225
impl<T> [T] {
225226
/// Sorts the slice.
@@ -442,7 +443,6 @@ impl<T> [T] {
442443
/// // Here, `s` and `x` can be modified independently.
443444
/// ```
444445
#[rustc_conversion_suggestion]
445-
#[rustc_diagnostic_item = "slice_to_vec_method"]
446446
#[stable(feature = "rust1", since = "1.0.0")]
447447
#[inline]
448448
pub fn to_vec(&self) -> Vec<T>

std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use crate::sys_common::{AsInner, FromInner, IntoInner};
7171
/// [`CStr`]: crate::ffi::CStr
7272
/// [conversions]: super#conversions
7373
#[derive(Clone)]
74-
#[cfg_attr(not(test), rustc_diagnostic_item = "os_string_type")]
74+
#[cfg_attr(not(test), rustc_diagnostic_item = "OsString")]
7575
#[stable(feature = "rust1", since = "1.0.0")]
7676
pub struct OsString {
7777
inner: Buf,

std/src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ impl FusedIterator for Ancestors<'_> {}
10661066
///
10671067
/// Which method works best depends on what kind of situation you're in.
10681068
#[derive(Clone)]
1069-
#[cfg_attr(not(test), rustc_diagnostic_item = "path_buf_type")]
1069+
#[cfg_attr(not(test), rustc_diagnostic_item = "PathBuf")]
10701070
#[stable(feature = "rust1", since = "1.0.0")]
10711071
// FIXME:
10721072
// `PathBuf::as_mut_vec` current implementation relies

0 commit comments

Comments
 (0)