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 #32025
Conversation
rust-highfive
assigned
nrc
Mar 3, 2016
This comment has been minimized.
This comment has been minimized.
|
I'm tempted to leave the deprecation until Since the behaviour of |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
Reviewed, LGTM except that I don't think we should deprecate |
alexcrichton
reviewed
Mar 4, 2016
| @@ -15,6 +15,8 @@ | |||
| // fail with the same error message). | |||
|
|
|||
| #[no_implicit_prelude] | |||
| //~^ WARNING: deprecated | |||
| //~^^ WARNING: deprecated | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Nemo157
Mar 4, 2016
Author
Contributor
The feature gate visitor is run twice, once before cfg expansion and once after. I could try and find some way to avoid the double up, but the existing simd attribute deprecation warning does the same.
This comment has been minimized.
This comment has been minimized.
alexcrichton
Mar 4, 2016
Member
Hm ok, we probably want to figure out whether we're deprecating or not before going to great lengths to figure this out, and it's probably fine either way.
This comment has been minimized.
This comment has been minimized.
|
Thanks @Nemo157! In terms of tests, can you also add a new test to ensure that In terms of deprecation, we have a few possible routes we can take here:
To me the answer of what to do here kinda depends on if there's any widespread usage of Doing a quick grep over the latest code on crates.io right now I see:
So given that we probably can't remove immediately. We may also not be able to deprecate either without stabilizing I'm personally always a fan of more aggressive deprecation, so I'd prefer to deprecate immediately, but others may feel differently! |
This comment has been minimized.
This comment has been minimized.
|
|
Nemo157
force-pushed the
Nemo157:consistent-no_prelude-attribute
branch
from
4acf7a2
to
e0c361e
Mar 6, 2016
This comment has been minimized.
This comment has been minimized.
|
|
Nemo157
force-pushed the
Nemo157:consistent-no_prelude-attribute
branch
from
e0c361e
to
938b9e0
Mar 8, 2016
jseyfried
referenced this pull request
Mar 9, 2016
Merged
resolve: Minimize hacks in name resolution of primitive types #32131
This comment has been minimized.
This comment has been minimized.
|
See also #32131 (comment) |
nrc
assigned
alexcrichton
and unassigned
nrc
Mar 14, 2016
alexcrichton
added
T-lang
I-nominated
labels
Mar 14, 2016
This comment has been minimized.
This comment has been minimized.
|
Nominating for discussion at a lang team meeting (I think I applied the right tags?) |
This comment has been minimized.
This comment has been minimized.
|
|
Nemo157
added some commits
Mar 2, 2016
Nemo157
force-pushed the
Nemo157:consistent-no_prelude-attribute
branch
from
938b9e0
to
d52fc6a
Mar 16, 2016
This comment has been minimized.
This comment has been minimized.
|
We discussed how to proceed in the @rust-lang/lang meeting. Our feeling was that:
|
aturon
removed
the
I-nominated
label
Mar 31, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Closing due to inactivity, but feel free to resubmit with a rebase! |
Nemo157 commentedMar 3, 2016
Implementation of rust-lang/rfcs#501 tracked in #20561.
Adds the
no_preludeattribute that stops automatic injecting of the standard prelude in a single module behind a feature gate.Deprecates the existing
no_implicit_prelude.