diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2023-09-26 23:56:38 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2023-10-05 18:21:47 -0400 |
| commit | d464b72970faf5769c6c02d52f21f8e26eb1727d (patch) | |
| tree | 1357c41f218e1ecc933587e8d654b1f5d7b6e647 /library/std/src/time.rs | |
| parent | cae0791da47bb01f16885eb233dcd66b0093a6e1 (diff) | |
| download | rust-d464b72970faf5769c6c02d52f21f8e26eb1727d.tar.gz rust-d464b72970faf5769c6c02d52f21f8e26eb1727d.zip | |
Add more diagnostic items for clippy
Diffstat (limited to 'library/std/src/time.rs')
| -rw-r--r-- | library/std/src/time.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs index 005d8c76704..90ac0098dec 100644 --- a/library/std/src/time.rs +++ b/library/std/src/time.rs @@ -153,6 +153,7 @@ pub use core::time::TryFromFloatSecsError; /// #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[stable(feature = "time2", since = "1.8.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "Instant")] pub struct Instant(time::Instant); /// A measurement of the system clock, useful for talking to |
