Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/std/src/sys/pal/unsupported/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct SystemTime(Duration);
pub const UNIX_EPOCH: SystemTime = SystemTime(Duration::from_secs(0));

impl Instant {
#[inline(never)]
pub fn now() -> Instant {
panic!("time not implemented on this platform")
}
Expand All @@ -27,6 +28,7 @@ impl Instant {
}

impl SystemTime {
#[inline(never)]
pub fn now() -> SystemTime {
panic!("time not implemented on this platform")
}
Expand Down
Loading