File tree Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,13 @@ symbols! {
169169 Option ,
170170 Ord ,
171171 Ordering ,
172+ OsStr ,
172173 OsString ,
173174 Output ,
174175 Param ,
175176 PartialEq ,
176177 PartialOrd ,
178+ Path ,
177179 PathBuf ,
178180 Pending ,
179181 Pin ,
@@ -201,6 +203,7 @@ symbols! {
201203 Sync ,
202204 Target ,
203205 ToOwned ,
206+ ToString ,
204207 Try ,
205208 Ty ,
206209 TyCtxt ,
Original file line number Diff line number Diff line change 3131/// implementing the `Clone` trait. But `Clone` works only for going from `&T`
3232/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
3333/// from any borrow of a given type.
34- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
3534#[ cfg_attr( not( test) , rustc_diagnostic_item = "ToOwned" ) ]
35+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
3636pub trait ToOwned {
3737 /// The resulting type after obtaining ownership.
3838 #[ 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 {
21742174/// implementation for free.
21752175///
21762176/// [`Display`]: fmt::Display
2177+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "ToString" ) ]
21772178#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21782179pub trait ToString {
21792180 /// Converts the given value to a `String`.
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ pub struct OsString {
9090///
9191/// [`&str`]: str
9292/// [conversions]: super#conversions
93+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "OsStr" ) ]
9394#[ stable( feature = "rust1" , since = "1.0.0" ) ]
9495// FIXME:
9596// `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 {
17201720/// let extension = path.extension();
17211721/// assert_eq!(extension, Some(OsStr::new("txt")));
17221722/// ```
1723+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "Path" ) ]
17231724#[ stable( feature = "rust1" , since = "1.0.0" ) ]
17241725// FIXME:
17251726// `Path::new` current implementation relies
You can’t perform that action at this time.
0 commit comments