-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
attempting to address path clarity warnings for 2018 edition with StructOpt macro led to ICE #57015
Comments
i also get this on stable and earlier nightlies, if that is at all useful. |
(also please feel free to let me know if i can provide any more info- this is my first time filing a compiler bug! thanks for all your hardwork and help <3) |
Nominating -- we should keep focus on Rust 2018-related bugs like this, I think. |
Did you? I mean, there is a typo, right? Do you mean, you expected a controller error? Specifically I see this in the diff:
and I think it should be |
I guess you are saying you get the same ICE from https://github.com/ashleygwilliams/cargo-generate/pull/136/files, which has a fix... did you try a cargo clean? (I'm wondering if it is related to incremental compilation.) |
yeah, so i noticed the typo, and then fixed it (hence the 2 PRs- i included both on the offchance that there were 2 issues.) i expected the 2nd one to compile, and the first one (after i noticed the typo, to not compile but give an error re: the typo). i will run a cargo clean and see if it helps! |
OK, thanks for the clarification. |
just ran |
Fixed in #57185 |
resolve: Fix one more ICE in import validation So if you have an unresolved import ```rust mod m { use foo::bar; } ``` error recovery will insert a special item with `Def::Err` definition into module `m`, so other things depending on `bar` won't produce extra errors. The issue was that erroneous `bar` was overwriting legitimate `bar`s coming from globs, e.g. ```rust mod m { use baz::*; // imports real existing `bar` use foo::bar; } ``` causing some unwanted diagnostics talking about "unresolved items", and producing inconsistent resolutions like #57015. This PR stops overwriting real successful resolutions with `Def::Err`s. Fixes #57015
the code i tried:
i expected:
structStructOpt
typoinstead, what happened:
system info:
The text was updated successfully, but these errors were encountered: