-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Suggest full enum variant for local modules #87158
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Suggest full enum variant for local modules #87158
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @LeSeulArtichaut (or someone else) soon. Please see the contribution instructions for more information. |
| ------------- ^^ | ||
| | | | ||
| | expected enum `O`, found `()` | ||
| | help: try using a variant of the expected enum: `option::O::Some(())` |
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.
Applying suggestion without full path leads to compiler error.
r? @estebank |
If we use the short path for suggestions we already provide a follow up suggestion to import the right thing, but I prefer this for now. Surprised that no other test is changed. @bors r+ |
📌 Commit b690901 has been approved by |
…laumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#87107 (Loop over all opaque types instead of looking at just the first one with the same DefId) - rust-lang#87158 (Suggest full enum variant for local modules) - rust-lang#87174 (Stabilize `[T; N]::map()`) - rust-lang#87179 (Mark `const_trait_impl` as active) - rust-lang#87180 (feat(rustdoc): open sidebar menu when links inside it are focused) - rust-lang#87188 (Add GUI test for auto-hide-trait-implementations setting) - rust-lang#87200 (TAIT: Infer all inference variables in opaque type substitutions via InferCx) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.