- cx.struct_span_lint(NOOP_METHOD_CALL, span, fluent::lint_noop_method_call, |lint| {
- lint.set_arg("method", call.ident.name)
- .set_arg("receiver_ty", receiver_ty)
- .span_label(span, fluent::label)
- .note(fluent::note)
- });
+ cx.emit_spanned_lint(
+ NOOP_METHOD_CALL,
+ span,
+ NoopMethodCallDiag { method: call.ident.name, receiver_ty, label: span },
+ );