about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorSerial <69764315+Serial-ATA@users.noreply.github.com>2022-04-28 16:42:20 -0400
committerSerial <69764315+Serial-ATA@users.noreply.github.com>2022-04-28 16:42:20 -0400
commit09b0b8b6e2ab36fbe2dfd4d5b7490f0390543b33 (patch)
tree432ccc63d006274128ebfc0bfed6212dfc8ca47b /library/std/src
parent1388b38c52d1ca9fbc80bf42fa007504fb0b1b41 (diff)
downloadrust-09b0b8b6e2ab36fbe2dfd4d5b7490f0390543b33.tar.gz
rust-09b0b8b6e2ab36fbe2dfd4d5b7490f0390543b33.zip
Add more diagnostic items
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/error.rs b/library/std/src/error.rs
index 3f85c2095cb..fdeb280d240 100644
--- a/library/std/src/error.rs
+++ b/library/std/src/error.rs
@@ -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.
     ///