@@ -51,6 +51,8 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
51
51
///
52
52
/// The `help` message can be optionally attached to a `Span`.
53
53
///
54
+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
55
+ ///
54
56
/// # Example
55
57
///
56
58
/// ```ignore
@@ -87,6 +89,8 @@ pub fn span_lint_and_help<'a, T: LintContext>(
87
89
/// The `note` message is presented separately from the main lint message
88
90
/// and is attached to a specific span:
89
91
///
92
+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
93
+ ///
90
94
/// # Example
91
95
///
92
96
/// ```ignore
@@ -126,6 +130,7 @@ pub fn span_lint_and_note<'a, T: LintContext>(
126
130
/// Like `span_lint` but allows to add notes, help and suggestions using a closure.
127
131
///
128
132
/// 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`
129
134
pub fn span_lint_and_then < ' a , T : LintContext , F > ( cx : & ' a T , lint : & ' static Lint , sp : Span , msg : & str , f : F )
130
135
where
131
136
F : for < ' b > FnOnce ( & mut DiagnosticBuilder < ' b > ) ,
@@ -168,6 +173,10 @@ pub fn span_lint_hir_and_then(
168
173
/// In the example below, `help` is `"try"` and `sugg` is the suggested replacement `".any(|x| x >
169
174
/// 2)"`.
170
175
///
176
+ /// If you change the signature, remember to update the internal lint `CollapsibleCalls`
177
+ ///
178
+ /// # Example
179
+ ///
171
180
/// ```ignore
172
181
/// error: This `.fold` can be more succinctly expressed as `.any`
173
182
/// --> $DIR/methods.rs:390:13
0 commit comments