Skip to main content

misplaced_imports

Function misplaced_imports 

Source
pub fn misplaced_imports(source: &str) -> Vec<Dependency>
Expand description

Every Import sentence below a file’s first ## header, each with its byte span. That is where scan_dependencies does not read, so such a sentence imports nothing: the module is never spliced and the program runs on without it. A caller refuses each at its own line. A line inside a