Add more diagnostic items

This commit is contained in:
Serial
2022-04-28 16:42:20 -04:00
parent 1388b38c52
commit 09b0b8b6e2
3 changed files with 18 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ use crate::time;
/// high-level module to provide its own errors while also revealing some of the
/// implementation for debugging via `source` chains.
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "Error")]
pub trait Error: Debug + Display {
/// The lower-level source of this error, if any.
///