-
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
Consistent no-prelude attribute #501
Consistent no-prelude attribute #501
Conversation
I'm drooling over the idea of |
|
Wow, #[deep] sounds great (I realize that wasn't the main thrust of the RFC). |
@sfackler we could just mark |
You can't attach attributes to attributes :P |
I guess |
👍 straightforward consistency win. I feel uncomfortable with |
@brson: we should fast-track this. |
I think this is a fine change (no opinion about deep). My sole hesitation is that we'd like to make it possible to provide custom preludes, which would likely subsume the I don't think that we plan on stabilizing these attributes (certainly not for alpha) so we have a bit of time. OTOH I'm happy to roll this out now as a clear improvement on the status quo, and then remove it if we can get custom preludes in quickly enough. |
I update the RFC with the @aturon: I'd be perfectly happy with accepting this even if a more general solution might appear any day - it would be an improvement either way. |
Thanks @Kimundi! The core team plans to meet early tomorrow and I'll make sure this is covered (I suspect it will be accepted immediately.) Sorry again about the delay. |
@Kimundi I was able to reach enough of the core team to go ahead and move forward with this. As we discussed above, there's little reason not to go ahead and make this improvement even if it will be subsumed by some later mechanism. Thanks for writing the RFC! |
Make name and behavior of the
#![no_std]
and#![no_implicit_prelude]
attributesconsistent by renaming the latter to
#![no_prelude]
and having it only apply to the currentmodule.
Optionally add a#[deep(...)]
attribute for deeply applying an attribute to each module ascomposable replacement for the old behavior.
Rendered