Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConsistent no-prelude attribute #501
Conversation
Kimundi
changed the title
Added Consistent No Prelude Attribute RFC
Consistent no-prelude attribute
Dec 6, 2014
This comment has been minimized.
This comment has been minimized.
ghost
commented
Dec 6, 2014
|
I'm drooling over the idea of |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Wow, #[deep] sounds great (I realize that wasn't the main thrust of the RFC). |
This comment has been minimized.
This comment has been minimized.
reem
commented
Dec 11, 2014
|
@sfackler we could just mark |
This comment has been minimized.
This comment has been minimized.
|
You can't attach attributes to attributes :P |
This comment has been minimized.
This comment has been minimized.
reem
commented
Dec 11, 2014
|
I guess |
brson
assigned
aturon
Dec 11, 2014
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@brson: we should fast-track this. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
aturon
referenced this pull request
Jan 5, 2015
Open
Tracking issue for Consistent no-prelude attribute (RFC 501) #20561
aturon
merged commit 083ce8e
into
rust-lang:master
Jan 5, 2015
This comment has been minimized.
This comment has been minimized.
|
@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! |
Kimundi commentedDec 6, 2014
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