Skip to content

Commit 8f7eff9

Browse files
committed
Rename to mods_with_parse_errors
1 parent d5c0728 commit 8f7eff9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/rustc_resolve/src/build_reduced_graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
782782
self.r.define(parent, ident, TypeNS, (module, vis, sp, expansion));
783783

784784
if let ast::ModKind::Loaded(_, _, _, Err(_)) = mod_kind {
785-
self.r.mod_with_parse_errors.insert(def_id);
785+
self.r.mods_with_parse_errors.insert(def_id);
786786
}
787787

788788
// Descend into the module.

compiler/rustc_resolve/src/ident.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
16021602

16031603
let maybe_assoc = opt_ns != Some(MacroNS) && PathSource::Type.is_expected(res);
16041604
if let Some(next_module) = binding.module() {
1605-
if self.mod_with_parse_errors.contains(&next_module.def_id()) {
1605+
if self.mods_with_parse_errors.contains(&next_module.def_id()) {
16061606
module_had_parse_errors = true;
16071607
}
16081608
module = Some(ModuleOrUniformRoot::Module(next_module));

compiler/rustc_resolve/src/imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
675675
) {
676676
errors.retain(|(_import, err)| match err.module {
677677
// Skip `use` errors for `use foo::Bar;` if `foo.rs` has unrecovered parse errors.
678-
Some(def_id) if self.mod_with_parse_errors.contains(&def_id) => false,
678+
Some(def_id) if self.mods_with_parse_errors.contains(&def_id) => false,
679679
_ => true,
680680
});
681681
if errors.is_empty() {

compiler/rustc_resolve/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ pub struct Resolver<'ra, 'tcx> {
12021202
/// could be a crate that wasn't imported. For diagnostics use only.
12031203
current_crate_outer_attr_insert_span: Span,
12041204

1205-
mod_with_parse_errors: FxHashSet<DefId>,
1205+
mods_with_parse_errors: FxHashSet<DefId>,
12061206
}
12071207

12081208
/// This provides memory for the rest of the crate. The `'ra` lifetime that is
@@ -1548,7 +1548,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15481548
impl_unexpanded_invocations: Default::default(),
15491549
impl_binding_keys: Default::default(),
15501550
current_crate_outer_attr_insert_span,
1551-
mod_with_parse_errors: Default::default(),
1551+
mods_with_parse_errors: Default::default(),
15521552
};
15531553

15541554
let root_parent_scope = ParentScope::module(graph_root, &resolver);

0 commit comments

Comments
 (0)