@@ -47,7 +47,7 @@ fn docs_link(diag: &mut Diagnostic, lint: &'static Lint) {
47
47
/// ```
48
48
pub fn span_lint < T : LintContext > ( cx : & T , lint : & ' static Lint , sp : impl Into < MultiSpan > , msg : & str ) {
49
49
#[ expect( clippy:: disallowed_methods) ]
50
- cx. struct_span_lint ( lint, sp, msg. to_string ( ) , |diag| {
50
+ cx. span_lint ( lint, sp, msg. to_string ( ) , |diag| {
51
51
docs_link ( diag, lint) ;
52
52
} ) ;
53
53
}
@@ -81,7 +81,7 @@ pub fn span_lint_and_help<T: LintContext>(
81
81
help : & str ,
82
82
) {
83
83
#[ expect( clippy:: disallowed_methods) ]
84
- cx. struct_span_lint ( lint, span, msg. to_string ( ) , |diag| {
84
+ cx. span_lint ( lint, span, msg. to_string ( ) , |diag| {
85
85
let help = help. to_string ( ) ;
86
86
if let Some ( help_span) = help_span {
87
87
diag. span_help ( help_span, help. to_string ( ) ) ;
@@ -124,7 +124,7 @@ pub fn span_lint_and_note<T: LintContext>(
124
124
note : & str ,
125
125
) {
126
126
#[ expect( clippy:: disallowed_methods) ]
127
- cx. struct_span_lint ( lint, span, msg. to_string ( ) , |diag| {
127
+ cx. span_lint ( lint, span, msg. to_string ( ) , |diag| {
128
128
let note = note. to_string ( ) ;
129
129
if let Some ( note_span) = note_span {
130
130
diag. span_note ( note_span, note) ;
@@ -146,7 +146,7 @@ where
146
146
F : FnOnce ( & mut Diagnostic ) ,
147
147
{
148
148
#[ expect( clippy:: disallowed_methods) ]
149
- cx. struct_span_lint ( lint, sp, msg. to_string ( ) , |diag| {
149
+ cx. span_lint ( lint, sp, msg. to_string ( ) , |diag| {
150
150
f ( diag) ;
151
151
docs_link ( diag, lint) ;
152
152
} ) ;
0 commit comments