-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reorganize core::sys
and other runtime details
#2240
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
What should core::sys be renamed to? |
That's a tough question, and I basically think that it needs to be entirely eliminated now. This module is a combination of introspection and intrinsics and runtime representations. I think we could start by moving the entire thing to a submodule of Here's a suggestion for each thing defined in sys:
OK, that's everything. I guess my conclusion here is that most of this stuff just shouldn't be exposed, the size functions being the only exceptions. I think we need others to weigh in. @graydon What do you think? |
I find the idea of the That said, I don't mind trying to merge some of the muddle here. There's clearly redundancy between |
@graydon I agree |
I imagine we ultimately need 3 runtime modules: the first is the private runtime source, the second fills the current role of |
@graydon also suggested that the size and align functions belong in |
OK, here's a new suggested plan of attack.
That gives these modules an organization that I like and hides the ugly details contained in |
Updated title to reflect current plan. |
Will the tests be able to access |
Yes. |
As I think more about it I don't think it necessarily makes sense to aggressively dump implementation details into |
As of 2013-06-05, |
|
More progress on rust-lang#2240
I have a patch that allows to completely removes this module after a snapshot, going to post it as soon as #9967 lands. |
readme Emulation of weak memory effects is not a kind of UB, so put it into a separate paragraph. Also remove the note about incomplete threading support. :)
core::sys
entirely deals with types and introspection now:get_type_desc
,size_of
,align_of
,refcount
,log_str
.The text was updated successfully, but these errors were encountered: