2024-01-15 21:29:28 -06:00
error: use of a disallowed method `rustc_lint::context::LintContext::span_lint`
2024-02-27 08:25:18 -06:00
--> tests/ui-internal/disallow_span_lint.rs:14:5
2023-11-16 12:13:24 -06:00
|
2024-05-30 02:44:14 -05:00
LL | / cx.span_lint(lint, span, |lint| {
LL | | lint.primary_message(msg);
LL | | });
| |______^
2023-11-16 12:13:24 -06:00
|
2024-03-21 16:20:40 -05:00
= note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead (from clippy.toml)
2023-11-16 12:13:24 -06:00
= note: `-D clippy::disallowed-methods` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::disallowed_methods)]`
2024-01-15 23:14:33 -06:00
error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::node_span_lint`
2024-05-30 02:44:14 -05:00
--> tests/ui-internal/disallow_span_lint.rs:20:5
2023-11-16 12:13:24 -06:00
|
2024-05-30 02:44:14 -05:00
LL | / tcx.node_span_lint(lint, hir_id, span, |lint| {
LL | | lint.primary_message(msg);
LL | | });
| |______^
2024-03-21 16:20:40 -05:00
|
= note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead (from clippy.toml)
2023-11-16 12:13:24 -06:00
error: aborting due to 2 previous errors