-
Notifications
You must be signed in to change notification settings - Fork 13.4k
std::time is stunted #17536
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
Comments
cc me |
It seems to be a nice model where libstd defines a common type or trait and 3rd party packages can use those. The benefit is possibly better cross-library compatibility. The only hazard is that the libstd parts need to be well designed, so that they are actually useful and will be used by other packages. |
Some folks attempts to use Rust to write a OS kernel or a Linux kernel module without I think |
Any ideas on what should be done then? I'm willing to RfC this if necessary, but a general idea of which way we should go (moving into or out of std) would be nice. If people want the status quo, I'll try to add some doc comments. |
Declaration:
Further, a cursory inspection suggests that the types in each module are different, inhibiting the natural coupling in time modules. |
This is effectively a duplicate of rust-lang/rfcs#619 today, so I'm giving it a close. |
fix: Don't emit semantic diagnostics in files with a lot of syntax errors These will only add to the noise when something very unexpected breaks or where parser recovery fails to kick in.
The only thing std::time contains is
Duration
, which isn't too useful on its own. The real meat of it is in::time
.Perhaps one should be moved into the other?
Alternatively, we can add some docs to
Duration
that explain how to work with it. One common way of getting aDuration
is to subtract two instances oftime::now().to_timespec()
s, however this is completely not obvious onstd::time
. I don't mind adding these docs.The text was updated successfully, but these errors were encountered: