facebookexperimental / hermit

Hermit launches linux x86_64 programs in a special, hermetically isolated sandbox to control their execution. Hermit translates normal, nondeterministic behavior, into deterministic, repeatable behavior. This can be used for various applications, including replay-debugging, reproducible artifacts, chaos mode concurrency testing and bug analysis.
Other
1.17k stars 31 forks source link

update chrono APIs #51

Closed mikelui closed 3 months ago

mikelui commented 4 months ago

Summary: We get deprecated warnings in chrono 0.4.38

error: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
   --> fbcode/hermetic_infra/hermit/detcore/tests/time/mod.rs:193:32
    |
193 |                 NaiveDateTime::from_timestamp_opt(tp.tv_sec, tp.tv_nsec as u32).unwrap();
    |                                ^^^^^^^^^^^^^^^^^^

this blocks upgrade of rust third-party

Differential Revision: D56829596

jasonwhite commented 3 months ago

Closing. This has already been merged via 5ebb3fa4f54d9b09c877bd8e63bd169b2431b889.