Move confused_type_with_std_module to ResolverOutputs

This eliminates untracked global state from `Session`.
This commit is contained in:
Aaron Hill
2021-09-06 11:20:59 -05:00
parent 1c858ba5bf
commit 404402430d
6 changed files with 12 additions and 11 deletions

View File

@@ -137,6 +137,9 @@ pub struct ResolverOutputs {
/// A list of proc macro LocalDefIds, written out in the order in which
/// they are declared in the static array generated by proc_macro_harness.
pub proc_macros: Vec<LocalDefId>,
/// Mapping from ident span to path span for paths that don't exist as written, but that
/// exist under `std`. For example, wrote `str::from_utf8` instead of `std::str::from_utf8`.
pub confused_type_with_std_module: FxHashMap<Span, Span>,
}
#[derive(Clone, Copy, Debug)]