mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
fd84c31ff7
4346: Fix rename of enum variant visible from module r=matklad a=montekki
Probably fixes #4237
It looks like the ref is found correctly in this case but it's visibility is not correctly determined. I took a stab at fixing that by adding an implementation of `HasVisibility` for `EnumVariant` so it works more or less the same way it does for struct fields.
In other words, the `search_range` here does not contain the ref since it's not considered visible:
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |