Uh oh!
There was an error while loading. Please reload this page.
Always emit unresolved import errors and hide unused import lint - #64054
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
estebank
commented
Sep 3, 2019
@petrochenkov I originally had a similar intuition to what you mentioned, but in practice I found that we only have hard failures on the first time a module is not found. After that we always get |
petrochenkov
commented
Sep 4, 2019
(I need to make some experiments.) |
Mostly superseded by #64265. |
estebank
commented
Sep 7, 2019
Is the behavior of "report all the indeterminate imports as unresolved" correct? I can publish a PR after yours gets merged to do so. I think it is useful to have but not critical if it could lead to bad false positives (due to dependencies: |
petrochenkov
commented
Sep 7, 2019
I don't think it's correct as implemented because What I think we should do is something roughly like this: for import in determinate_imports.chain(indeterminate_imports){ifletSome(err) = finalize_import(import){report_error(err)}elseifis_indeterminate(import){report_error("cannot determine resolution")}} |
petrochenkov
commented
Sep 7, 2019
AFAIK, this case should be already covered by marking |
bors
commented
Sep 8, 2019
☔ The latest upstream changes (presumably #64281) made this pull request unmergeable. Please resolve the merge conflicts. |
6fa3696 to
9a56187Comparepetrochenkov
commented
Sep 9, 2019
Thanks! |
bors
commented
Sep 9, 2019
📌 Commit 9a56187 has been approved by |
… r=petrochenkov Always emit unresolved import errors and hide unused import lint Fixrust-lang#63724. r? @petrochenkov
Rollup of 5 pull requests Successful merges: - #63806 (Upgrade rand to 0.7) - #64054 (Always emit unresolved import errors and hide unused import lint) - #64279 (Bump RLS and Rustfmt submodules to use rustc-ap-* v583) - #64317 (Update LLVM submodule) - #64320 (Update version of `rustc-std-workspace-*` crates) Failed merges: r? @ghost
Rollup of 5 pull requests Successful merges: - #63806 (Upgrade rand to 0.7) - #64054 (Always emit unresolved import errors and hide unused import lint) - #64279 (Bump RLS and Rustfmt submodules to use rustc-ap-* v583) - #64317 (Update LLVM submodule) - #64320 (Update version of `rustc-std-workspace-*` crates) Failed merges: r? @ghost
Fix#63724.
r? @petrochenkov