-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: path.segments.len() >= 2 #15528
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
Comments
The bug here seems not to be the assertion failure itself, but rather that mod a {
pub struct Foo;
impl Foo { pub fn bar() {} }
}
fn main() {
use a::Foo::bar; // error: Cannot import from a trait or type implementation
bar();
} So it is at least inconsistent that |
I can confirm that this bug has been fixed as a side effect of #15733. Basically, the assertion |
Hurray! I think the tests over there suffice for this as well. |
Enable `rust_analyzer` for cfgs when code is being analyzed by rust-analyzer This allows one to have r-a skip analysis/replace macros that work not well with r-a at all by gating them behind this cfg (an example being the `quote` macro which r-a struggles with in terms of performance).
Compiling this program with
rustc 0.11.0 (00cdd639a93ec1dcad85cebc52214eeba0441c93 2014-07-07 22:46:41 +0000)
on Linux x86_64 gives the backtrace below:The text was updated successfully, but these errors were encountered: