Skip to content

Commit c6bb628

Browse files
committed
requested/proposed changes
1 parent 5ef2025 commit c6bb628

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

compiler/rustc_span/src/symbol.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ symbols! {
169169
Option,
170170
Ord,
171171
Ordering,
172+
OsString,
172173
Output,
173174
Param,
174175
PartialEq,
175176
PartialOrd,
177+
PathBuf,
176178
Pending,
177179
Pin,
178180
Poll,
@@ -198,6 +200,7 @@ symbols! {
198200
StructuralPartialEq,
199201
Sync,
200202
Target,
203+
ToOwned,
201204
Try,
202205
Ty,
203206
TyCtxt,
@@ -796,7 +799,6 @@ symbols! {
796799
options,
797800
or,
798801
or_patterns,
799-
os_string_type,
800802
other,
801803
out,
802804
overlapping_marker_traits,
@@ -825,7 +827,6 @@ symbols! {
825827
pat2018,
826828
pat2021,
827829
path,
828-
path_buf_type,
829830
pattern_parentheses,
830831
phantom_data,
831832
pin,
@@ -1086,7 +1087,6 @@ symbols! {
10861087
slice,
10871088
slice_alloc,
10881089
slice_patterns,
1089-
slice_to_vec_method,
10901090
slice_u8,
10911091
slice_u8_alloc,
10921092
slicing_syntax,
@@ -1162,7 +1162,6 @@ symbols! {
11621162
then_with,
11631163
thread,
11641164
thread_local,
1165-
to_owned_trait,
11661165
tool_attributes,
11671166
tool_lints,
11681167
trace_macros,

library/alloc/src/borrow.rs

+1-1
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")]

library/alloc/src/slice.rs

+1-1
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>

library/std/src/ffi/os_str.rs

+1-1
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,

library/std/src/path.rs

+1-1
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)