@@ -85,7 +85,7 @@ fn validate_diag(diag: &Diag<'_, impl EmissionGuarantee>) {
85
85
/// This is needed for `#[allow]` and `#[expect]` attributes to work on the node
86
86
/// highlighted in the displayed warning.
87
87
///
88
- /// If you're unsure which function you should use, you can test if the `#[allow ]` attribute works
88
+ /// If you're unsure which function you should use, you can test if the `#[expect ]` attribute works
89
89
/// where you would expect it to.
90
90
/// If it doesn't, you likely need to use [`span_lint_hir`] instead.
91
91
///
@@ -128,7 +128,7 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
128
128
/// This is needed for `#[allow]` and `#[expect]` attributes to work on the node
129
129
/// highlighted in the displayed warning.
130
130
///
131
- /// If you're unsure which function you should use, you can test if the `#[allow ]` attribute works
131
+ /// If you're unsure which function you should use, you can test if the `#[expect ]` attribute works
132
132
/// where you would expect it to.
133
133
/// If it doesn't, you likely need to use [`span_lint_hir_and_then`] instead.
134
134
///
@@ -183,7 +183,7 @@ pub fn span_lint_and_help<T: LintContext>(
183
183
/// This is needed for `#[allow]` and `#[expect]` attributes to work on the node
184
184
/// highlighted in the displayed warning.
185
185
///
186
- /// If you're unsure which function you should use, you can test if the `#[allow ]` attribute works
186
+ /// If you're unsure which function you should use, you can test if the `#[expect ]` attribute works
187
187
/// where you would expect it to.
188
188
/// If it doesn't, you likely need to use [`span_lint_hir_and_then`] instead.
189
189
///
@@ -241,7 +241,7 @@ pub fn span_lint_and_note<T: LintContext>(
241
241
/// This is needed for `#[allow]` and `#[expect]` attributes to work on the node
242
242
/// highlighted in the displayed warning.
243
243
///
244
- /// If you're unsure which function you should use, you can test if the `#[allow ]` attribute works
244
+ /// If you're unsure which function you should use, you can test if the `#[expect ]` attribute works
245
245
/// where you would expect it to.
246
246
/// If it doesn't, you likely need to use [`span_lint_hir_and_then`] instead.
247
247
pub fn span_lint_and_then < C , S , M , F > ( cx : & C , lint : & ' static Lint , sp : S , msg : M , f : F )
@@ -358,7 +358,7 @@ pub fn span_lint_hir_and_then(
358
358
/// This is needed for `#[allow]` and `#[expect]` attributes to work on the node
359
359
/// highlighted in the displayed warning.
360
360
///
361
- /// If you're unsure which function you should use, you can test if the `#[allow ]` attribute works
361
+ /// If you're unsure which function you should use, you can test if the `#[expect ]` attribute works
362
362
/// where you would expect it to.
363
363
/// If it doesn't, you likely need to use [`span_lint_hir_and_then`] instead.
364
364
///
0 commit comments