Skip to content

Commit 6423711

Browse files
committed
Added documentation to the multispan_sugg method
1 parent 1eed27f commit 6423711

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clippy_lints/src/utils/diagnostics.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ where
216216
multispan_sugg_with_applicability(diag, help_msg, Applicability::Unspecified, sugg)
217217
}
218218

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

0 commit comments

Comments
 (0)