-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
incorrect suggestion when skipping a module in a qualified reference #120074
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
folkertdev
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jan 17, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jan 17, 2024
looks like this was fixed already, but it's not on nightly yet (or at least, not on play.rust-lang.org) on commit
|
seems it still not be fixed in nightly. |
saethlin
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 12, 2024
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 2, 2024
Rollup merge of rust-lang#127203 - chenyukang:yukang-fix-120074-import, r=Nadrieril Fix import suggestion error when path segment failed not from starting Fixes rust-lang#120074
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jul 12, 2024
…rt-ice, r=estebank Fix import suggestion ice Fixes rust-lang#127302 rust-lang#127302 only crash in edition 2015 rust-lang#120074 can only reproduced in edition 2021 so I added revisions in test file.
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Jul 12, 2024
…rt-ice, r=estebank Fix import suggestion ice Fixes rust-lang#127302 rust-lang#127302 only crash in edition 2015 rust-lang#120074 can only reproduced in edition 2021 so I added revisions in test file.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 13, 2024
Rollup merge of rust-lang#127310 - chenyukang:yukang-fix-suggest-import-ice, r=estebank Fix import suggestion ice Fixes rust-lang#127302 rust-lang#127302 only crash in edition 2015 rust-lang#120074 can only reproduced in edition 2021 so I added revisions in test file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
just a minor formatting logic bug I think. If a module name is missing in the middle of a chain (here
crate::bar::do_the_thing
is used, butcrate::foo::bar::do_the_thing
is defined) the suggestion is the full path, not just the bit in the middle that is missing.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: