1
Fork 0

Add more diagnostic items for clippy

This commit is contained in:
Jason Newcomb 2023-09-26 23:56:38 -04:00
parent cae0791da4
commit d464b72970
75 changed files with 289 additions and 270 deletions

View file

@ -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