@@ -47,7 +47,7 @@ fn docs_link(diag: &mut Diagnostic, lint: &'static Lint) {
4747/// ```
4848pub fn span_lint < T : LintContext > ( cx : & T , lint : & ' static Lint , sp : impl Into < MultiSpan > , msg : & str ) {
4949 #[ 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| {
5151 docs_link ( diag, lint) ;
5252 } ) ;
5353}
@@ -81,7 +81,7 @@ pub fn span_lint_and_help<T: LintContext>(
8181 help : & str ,
8282) {
8383 #[ 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| {
8585 let help = help. to_string ( ) ;
8686 if let Some ( help_span) = help_span {
8787 diag. span_help ( help_span, help. to_string ( ) ) ;
@@ -124,7 +124,7 @@ pub fn span_lint_and_note<T: LintContext>(
124124 note : & str ,
125125) {
126126 #[ 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| {
128128 let note = note. to_string ( ) ;
129129 if let Some ( note_span) = note_span {
130130 diag. span_note ( note_span, note) ;
@@ -146,7 +146,7 @@ where
146146 F : FnOnce ( & mut Diagnostic ) ,
147147{
148148 #[ 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| {
150150 f ( diag) ;
151151 docs_link ( diag, lint) ;
152152 } ) ;
0 commit comments