Skip to main content

scoped_remapping_warnings

Function scoped_remapping_warnings 

Source
fn scoped_remapping_warnings(
    scoped: Vec<RelativeRemapping>,
    previous_globals: &BTreeSet<RelativeRemapping>,
    current: &[Remapping],
    project_paths: &[PathBuf],
    include_paths: &[PathBuf],
    root: &Path,
) -> Vec<Warning>
Expand description

Returns migration advice for scoped declarations whose former global target root imports silently replace.

Root imports still resolve when a root mapping covers the alias, or when the root or an include path contains it. Otherwise imports of it fail with actionable compiler help, so warning here would flag projects that never import the alias.