2024-01-16 14:29:28 +11:00
|
|
|
error: use of a disallowed method `rustc_lint::context::LintContext::span_lint`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui-internal/disallow_span_lint.rs:14:5
|
2023-11-16 19:13:24 +01:00
|
|
|
|
|
2024-01-16 14:29:28 +11:00
|
|
|
LL | cx.span_lint(lint, span, msg, |_| {});
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-11-16 19:13:24 +01:00
|
|
|
|
|
|
|
|
= note: `-D clippy::disallowed-methods` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::disallowed_methods)]`
|
|
|
|
|
2024-01-16 16:14:33 +11:00
|
|
|
error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::node_span_lint`
|
2024-03-07 17:05:53 +01:00
|
|
|
--> tests/ui-internal/disallow_span_lint.rs:18:5
|
2023-11-16 19:13:24 +01:00
|
|
|
|
|
2024-01-16 16:14:33 +11:00
|
|
|
LL | tcx.node_span_lint(lint, hir_id, span, msg, |_| {});
|
2024-01-25 19:17:36 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-11-16 19:13:24 +01:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|