Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

Previously, "find all references" on a variant field wouldn't find any
references outside the defining module. This is because variant fields
were incorrectly assumed to be private, like struct fields without
explicit visibility, but they actually inherit the enum's visibility.

bors r+ 🤖

Previously, "find all references" on a variant field wouldn't find any
references outside the defining module. This is because variant fields
were incorrectly assumed to be private, like struct fields without
explicit visibility, but they actually inherit the enum's visibility.
fn main() { foo::Foo::Bar { bar: () }; } ",
);
check_assist(
check_assist_not_applicable(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was wrong, the code that was inserted by the assist does not compile

@bors
Copy link
Contributor

bors bot commented Oct 9, 2020

@bors bors bot merged commit c423738 into rust-lang:master Oct 9, 2020
@jonas-schievink jonas-schievink deleted the enum-var-field-vis branch April 7, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants