-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
#[!resolve_unexported] => #[resolve_unexported] to fix pretty printing #15115
Conversation
Without this change, we were unable to do: % rustc --test --pretty expanded foo.rs > bar.rs % rustc bar.s
I believe that the name of this attribute was intentionally chosen so it could never be written down. This attribute allows a module to entirely bypass all privacy restrictions which is a little worrisome to allow on a general basis. |
That being said, I would very much like to say |
Hm, I didn't realize that's what it was doing. Having an attribute that does that feels a little icky. Is that mainly so we can write:
Instead of:
? If so, i don't think adding |
@erickt the whole module path has to be |
Another possible solution to this problem would be to just not print the module with |
Yet another possible approach: rename |
@klutzy's idea of adding |
This seems isolated to pretty printing, and I would rather just not print the If pretty printing succeeds, then you'll have two top-level modules for running the test harness, and likely two |
This PR is obsoleted by #15847, which removes the need for |
Closing in favor of #15847. |
Without this change, we were unable to do:
% rustc --test --pretty expanded foo.rs > bar.rs
% rustc bar.s