-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Trigger add_vis assist on paths/record fields as well #4273
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
Conversation
1f9ad2d
to
32dbb94
Compare
32dbb94
to
f35c29f
Compare
7339c2d
to
91bf7f3
Compare
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.
One case where this won't work correctly is with reexports, I think -- e.g. in
mod foo {
use bar::Baz;
mod bar { pub(super) struct Baz; }
}
foo::Baz<|>
we'll just change the visibility on the struct declaration, which isn't enough. That's kind of hard to fix though, so I'd probably leave it for now (maybe add a test to document it).
91bf7f3
to
93038f3
Compare
Union fields apparently don't work :(
93038f3
to
e17193d
Compare
|
||
#[test] | ||
#[ignore] | ||
// FIXME handle reexports properly |
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.
Added a test for the reexport case
r? @flodiebold :-) |
bors r+ |
Build succeeded: |
TB: add `Cell` state to support more fine-grained tracking of interior mutable data
Resolves #4037.
Semantics::resolve_record_field
seems to not work for union fields, so I think this can be handled in a future PR)