a few more diagnostic items
This commit is contained in:
parent
c6bb62810a
commit
67fcaaaa7a
5 changed files with 7 additions and 1 deletions
|
@ -169,11 +169,13 @@ symbols! {
|
||||||
Option,
|
Option,
|
||||||
Ord,
|
Ord,
|
||||||
Ordering,
|
Ordering,
|
||||||
|
OsStr,
|
||||||
OsString,
|
OsString,
|
||||||
Output,
|
Output,
|
||||||
Param,
|
Param,
|
||||||
PartialEq,
|
PartialEq,
|
||||||
PartialOrd,
|
PartialOrd,
|
||||||
|
Path,
|
||||||
PathBuf,
|
PathBuf,
|
||||||
Pending,
|
Pending,
|
||||||
Pin,
|
Pin,
|
||||||
|
@ -201,6 +203,7 @@ symbols! {
|
||||||
Sync,
|
Sync,
|
||||||
Target,
|
Target,
|
||||||
ToOwned,
|
ToOwned,
|
||||||
|
ToString,
|
||||||
Try,
|
Try,
|
||||||
Ty,
|
Ty,
|
||||||
TyCtxt,
|
TyCtxt,
|
||||||
|
|
|
@ -31,8 +31,8 @@ where
|
||||||
/// implementing the `Clone` trait. But `Clone` works only for going from `&T`
|
/// implementing the `Clone` trait. But `Clone` works only for going from `&T`
|
||||||
/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
|
/// to `T`. The `ToOwned` trait generalizes `Clone` to construct owned data
|
||||||
/// from any borrow of a given type.
|
/// from any borrow of a given type.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
|
||||||
#[cfg_attr(not(test), rustc_diagnostic_item = "ToOwned")]
|
#[cfg_attr(not(test), rustc_diagnostic_item = "ToOwned")]
|
||||||
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait ToOwned {
|
pub trait ToOwned {
|
||||||
/// The resulting type after obtaining ownership.
|
/// The resulting type after obtaining ownership.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
|
@ -2174,6 +2174,7 @@ impl FromStr for String {
|
||||||
/// implementation for free.
|
/// implementation for free.
|
||||||
///
|
///
|
||||||
/// [`Display`]: fmt::Display
|
/// [`Display`]: fmt::Display
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "ToString")]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait ToString {
|
pub trait ToString {
|
||||||
/// Converts the given value to a `String`.
|
/// Converts the given value to a `String`.
|
||||||
|
|
|
@ -90,6 +90,7 @@ pub struct OsString {
|
||||||
///
|
///
|
||||||
/// [`&str`]: str
|
/// [`&str`]: str
|
||||||
/// [conversions]: super#conversions
|
/// [conversions]: super#conversions
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "OsStr")]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
// FIXME:
|
// FIXME:
|
||||||
// `OsStr::from_inner` current implementation relies
|
// `OsStr::from_inner` current implementation relies
|
||||||
|
|
|
@ -1720,6 +1720,7 @@ impl AsRef<OsStr> for PathBuf {
|
||||||
/// let extension = path.extension();
|
/// let extension = path.extension();
|
||||||
/// assert_eq!(extension, Some(OsStr::new("txt")));
|
/// assert_eq!(extension, Some(OsStr::new("txt")));
|
||||||
/// ```
|
/// ```
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "Path")]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
// FIXME:
|
// FIXME:
|
||||||
// `Path::new` current implementation relies
|
// `Path::new` current implementation relies
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue