rust/compiler/rustc_resolve/src
许杰友 Jieyou Xu (Joe) bc1a069ec5
Rollup merge of #125381 - estebank:issue-96799, r=petrochenkov
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 unnameable 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.
2024-05-29 03:25:08 +01:00
..
late Auto merge of #124417 - Xiretza:translate-early-lints, r=fmease 2024-05-21 21:36:09 +00:00
build_reduced_graph.rs Auto merge of #125105 - nnethercote:rustc_resolve-cleanups, r=estebank 2024-05-18 06:36:44 +00:00
check_unused.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
def_collector.rs Create const block DefIds in typeck instead of ast lowering 2024-05-28 13:38:43 +00:00
diagnostics.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
effective_visibilities.rs Auto merge of #125105 - nnethercote:rustc_resolve-cleanups, r=estebank 2024-05-18 06:36:44 +00:00
errors.rs Move "elided lifetime in path" to subdiagnostic struct 2024-04-21 07:45:03 +00:00
ident.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
imports.rs Rollup merge of #125381 - estebank:issue-96799, r=petrochenkov 2024-05-29 03:25:08 +01:00
late.rs Rollup merge of #125381 - estebank:issue-96799, r=petrochenkov 2024-05-29 03:25:08 +01:00
lib.rs Rollup merge of #125381 - estebank:issue-96799, r=petrochenkov 2024-05-29 03:25:08 +01:00
macros.rs Auto merge of #125326 - weiznich:move/do_not_recommend_to_diganostic_namespace, r=compiler-errors 2024-05-22 04:14:08 +00:00
rustdoc.rs Remove #[macro_use] extern crate tracing from rustc_resolve. 2024-05-10 15:34:41 +10:00