Skip to main content

strip_import_items

Function strip_import_items 

Source
pub fn strip_import_items(items: Vec<Item>) -> Vec<Item>
Expand description

Remove all Item::Import entries from a list of AST items.

Used when inlining module contents into a consumer program — the module’s own imports have already been resolved and should not pollute the consumer’s import set.