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