span_includes_semi

Function span_includes_semi 

Source
fn span_includes_semi(src: &str, span: Span) -> Span
Expand description

Extend a span forward to include the trailing ; (if present). The AST’s GlobalVar span ends at the name, not the semicolon — for textual replacement we want to swallow the whole declaration.