@@ -51,6 +51,8 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
5151///
5252/// The `help` message can be optionally attached to a `Span`.
5353///
54+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
55+ ///
5456/// # Example
5557///
5658/// ```ignore
@@ -87,6 +89,8 @@ pub fn span_lint_and_help<'a, T: LintContext>(
8789/// The `note` message is presented separately from the main lint message
8890/// and is attached to a specific span:
8991///
92+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
93+ ///
9094/// # Example
9195///
9296/// ```ignore
@@ -126,6 +130,7 @@ pub fn span_lint_and_note<'a, T: LintContext>(
126130/// Like `span_lint` but allows to add notes, help and suggestions using a closure.
127131///
128132/// If you need to customize your lint output a lot, use this function.
133+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
129134pub fn span_lint_and_then < ' a , T : LintContext , F > ( cx : & ' a T , lint : & ' static Lint , sp : Span , msg : & str , f : F )
130135where
131136 F : for < ' b > FnOnce ( & mut DiagnosticBuilder < ' b > ) ,
@@ -168,6 +173,10 @@ pub fn span_lint_hir_and_then(
168173/// In the example below, `help` is `"try"` and `sugg` is the suggested replacement `".any(|x| x >
169174/// 2)"`.
170175///
176+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
177+ ///
178+ /// # Example
179+ ///
171180/// ```ignore
172181/// error: This `.fold` can be more succinctly expressed as `.any`
173182/// --> $DIR/methods.rs:390:13
0 commit comments