-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add limited CTFE #253
Add limited CTFE #253
Conversation
I've always thought that it'd be easiest to make all of these be associated statics of the |
the detailed description above resolves to `core::mem::size_of` because some | ||
programs might wish to avoid even `libcore`. | ||
|
||
Thus, this feature should live behind a feature gate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All new features are going to end up landing behind a feature gate at first, so this part isn't really relevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that this should be behind a feature gate until real CTFE has been implemented (if ever). Real CTFE would immediately replace this, but because this is not 100% compatible you would have to continue to maintain this if it's not marked unstable in some way.
+1. This seems like an excellent workaround until we get "real CTFE". |
We discussed this in the triage meeting today, and while CTFE of some kind is something we are interested in, it is backwards compatible and not high enough priority to block 1.0. Therefore we are postponing discussion on this until post-1.0. Thanks for the RFC! |
Fix minor documentation typo
The "rendered" link in the first comment is broken. Just wanted to report that. |
@fschutt Thanks; Fixed =) |
Implement compile time evaluation of a limited set of compiler-internal functions:
size_of
min_align_of
pref_align_of
Rendered
Old rendered link (not working)
EDIT: Fixed rendered link / Centril