diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-05-21 19:12:05 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-05-28 14:45:21 +0000 |
| commit | 37c54db477b06ade1cb69b4fd1af46184b650a43 (patch) | |
| tree | d760b5f10cd97c2e8b3427bdb33d106a70bf5d6f /compiler/rustc_errors/src/snippet.rs | |
| parent | 1a7397988684934ae01a71f524bdfff24895d8cc (diff) | |
| download | rust-37c54db477b06ade1cb69b4fd1af46184b650a43.tar.gz rust-37c54db477b06ade1cb69b4fd1af46184b650a43.zip | |
Silence some resolve errors when there have been glob import errors
When encountering `use foo::*;` where `foo` fails to be found, and we later encounter resolution errors, we silence those later errors. A single case of the above, for an *existing* import on a big codebase would otherwise have a huge number of knock-down spurious errors. Ideally, instead of a global flag to silence all subsequent resolve errors, we'd want to introduce an unameable binding in the appropriate rib as a sentinel when there's a failed glob import, so when we encounter a resolve error we can search for that sentinel and if found, and only then, silence that error. The current approach is just a quick proof of concept to iterate over. Partially address #96799.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
