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

Suggest a prelude glob import if you try to import an item inside of one #13449

Open
seritools opened this issue Oct 20, 2022 · 0 comments
Open
Labels
A-assists C-feature Category: feature request

Comments

@seritools
Copy link

I'd love to have the opportunity to import a full <crate>::prelude::* when importing an item that is inside of that prelude.

Example

foo.context(NotEnoughFrobnicationSnafu)?;
    ~~~~~~~ <context is the ResultExt::context trait fn from snafu, but the trait is not imported yet>

On opening the suggestions, currently it shows: "import snafu::ResultExt".
I'd like to have a second option "import snafu::prelude::*".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants