Skip to content
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

Trait suggestions ignore visibility #68871

Closed
wbl opened this issue Feb 5, 2020 · 1 comment
Closed

Trait suggestions ignore visibility #68871

wbl opened this issue Feb 5, 2020 · 1 comment

Comments

@wbl
Copy link

wbl commented Feb 5, 2020

Every so often the compiler will helpfully suggest importing trait x::y::z to fix a missing method. But the compiler doesn't realize that x::y::z isn't visible, and x::z, or x::y'::z is the import that will work. Is it possible for the compiler in making trait suggestions to be aware of the visibility of the traits it suggests?

This is closely related to #31323 I believe.

@wbl wbl closed this as completed Feb 5, 2020
@wbl
Copy link
Author

wbl commented Feb 5, 2020

#13065 is the original of this

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

No branches or pull requests

1 participant