File tree 5 files changed +7
-1
lines changed
5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,13 @@ symbols! {
169
169
Option ,
170
170
Ord ,
171
171
Ordering ,
172
+ OsStr ,
172
173
OsString ,
173
174
Output ,
174
175
Param ,
175
176
PartialEq ,
176
177
PartialOrd ,
178
+ Path ,
177
179
PathBuf ,
178
180
Pending ,
179
181
Pin ,
@@ -201,6 +203,7 @@ symbols! {
201
203
Sync ,
202
204
Target ,
203
205
ToOwned ,
206
+ ToString ,
204
207
Try ,
205
208
Ty ,
206
209
TyCtxt ,
Original file line number Diff line number Diff line change 31
31
/// implementing the `Clone` trait. But `Clone` works only for going from `&T`
32
32
/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
33
33
/// from any borrow of a given type.
34
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
35
34
#[ cfg_attr( not( test) , rustc_diagnostic_item = "ToOwned" ) ]
35
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
36
36
pub trait ToOwned {
37
37
/// The resulting type after obtaining ownership.
38
38
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -2174,6 +2174,7 @@ impl FromStr for String {
2174
2174
/// implementation for free.
2175
2175
///
2176
2176
/// [`Display`]: fmt::Display
2177
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "ToString" ) ]
2177
2178
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2178
2179
pub trait ToString {
2179
2180
/// Converts the given value to a `String`.
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ pub struct OsString {
90
90
///
91
91
/// [`&str`]: str
92
92
/// [conversions]: super#conversions
93
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "OsStr" ) ]
93
94
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
94
95
// FIXME:
95
96
// `OsStr::from_inner` current implementation relies
Original file line number Diff line number Diff line change @@ -1720,6 +1720,7 @@ impl AsRef<OsStr> for PathBuf {
1720
1720
/// let extension = path.extension();
1721
1721
/// assert_eq!(extension, Some(OsStr::new("txt")));
1722
1722
/// ```
1723
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "Path" ) ]
1723
1724
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1724
1725
// FIXME:
1725
1726
// `Path::new` current implementation relies
You can’t perform that action at this time.
0 commit comments