diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-11-02 15:08:53 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-11-03 15:51:39 +0300 |
| commit | be3a635fe777d4aac653994749ad47e650e71c1e (patch) | |
| tree | f1f2f0584916400b7e298beca0de5834b549bf19 /compiler/rustc_query_system | |
| parent | db034cee00570a9b82ea8b9e9e95221dbd745698 (diff) | |
| download | rust-be3a635fe777d4aac653994749ad47e650e71c1e.tar.gz rust-be3a635fe777d4aac653994749ad47e650e71c1e.zip | |
replace manual time convertions with std ones
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/graph.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index 5e30f17d626..e7ed8288499 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -1098,7 +1098,7 @@ impl<D: Deps> CurrentDepGraph<D> { use std::time::{SystemTime, UNIX_EPOCH}; let duration = SystemTime::now().duration_since(UNIX_EPOCH).unwrap(); - let nanos = duration.as_secs() * 1_000_000_000 + duration.subsec_nanos() as u64; + let nanos = duration.as_nanos(); let mut stable_hasher = StableHasher::new(); nanos.hash(&mut stable_hasher); let anon_id_seed = stable_hasher.finish(); |
