Function clippy_lints::utils::multispan_sugg [] [src]

pub fn multispan_sugg<I>(db: &mut DiagnosticBuilder, help_msg: String, sugg: I) where
    I: IntoIterator<Item = (Span, String)>, 

Create a suggestion made from several span → replacement.

Note: in the JSON format (used by compiletest_rs), the help message will appear once per replacement. In human-readable format though, it only appears once before the whole suggestion.