Skip to content

Commit 232e2b7

Browse files
committed
Added documentation to the multispan_sugg method
1 parent 81f9946 commit 232e2b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clippy_utils/src/diagnostics.rs

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

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

0 commit comments

Comments
 (0)