-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for SystemTime::UNIX_EPOCH #49502
Comments
@rfcbot fcp merge |
Team member @sfackler has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
For background, this is currently a stable constant in |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
Stabilize SystemTime::UNIX_EPOCH Fixes #49502
For others that found themselves on this issue from a compilation error on rust 1.27, I fixed it by changing: use std::time::SystemTime;
SystemTime::now().duration_since(SystemTime::UNIX_EPOCH); to use std::time::{SystemTime, UNIX_EPOCH};
SystemTime::now().duration_since(UNIX_EPOCH); |
@losvedir Was the error message about the feature being unstable? The module-level constant is older, but the associated constant on the type was stabilized in 1.28 which is currently in beta. |
Yes, the error I got was:
I think I found the |
I don’t know that we’re gonna deprecate the module-level constant. It’s sometimes slightly less convenient, but not "harmful" enough that we should actively push existing users to migrate. |
Added in #49501
The text was updated successfully, but these errors were encountered: