Skip to content

Commit

Permalink
Added documentation to the multispan_sugg method
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Jan 11, 2021
1 parent 1eed27f commit 6423711
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clippy_lints/src/utils/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ where
multispan_sugg_with_applicability(diag, help_msg, Applicability::Unspecified, sugg)
}

/// Create a suggestion made from several `span → replacement`.
///
/// rustfix currently doesn't support the automatic application of suggestions with
/// multiple spans. This is tracked in issue [rustfix#141](https://github.com/rust-lang/rustfix/issues/141).
/// Suggestions with multiple spans will be silently ignored.
pub fn multispan_sugg_with_applicability<I>(
diag: &mut DiagnosticBuilder<'_>,
help_msg: &str,
Expand Down

0 comments on commit 6423711

Please sign in to comment.