fmt: fix eating the attribute from @[deprecated] pub type Alias = int (fix #24968), workaround -usecache bug (#24969)

This commit is contained in:
Delyan Angelov 2025-07-25 10:57:52 +03:00 committed by GitHub
parent 73db18bc0d
commit 6fb46cc30f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 0 deletions

View file

@ -3,6 +3,7 @@ module time
// A lot of these are taken from the Go library.
pub type Duration = i64
@[markused]
pub const nanosecond = Duration(1)
pub const microsecond = Duration(1000 * nanosecond)
pub const millisecond = Duration(1000 * microsecond)