blob: 8631ddbb2cf4e88dec67565f23e1c1db600c40ae [file]
error: use of a disallowed method `rustc_lint::context::LintContext::emit_span_lint`
--> tests/ui-internal/disallow_span_lint.rs:15:8
|
LL | cx.emit_span_lint(
| ^^^^^^^^^^^^^^
|
= note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead
note: the lint level is defined here
--> tests/ui-internal/disallow_span_lint.rs:2:9
|
LL | #![deny(clippy::disallowed_methods)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::emit_node_span_lint`
--> tests/ui-internal/disallow_span_lint.rs:26:9
|
LL | tcx.emit_node_span_lint(
| ^^^^^^^^^^^^^^^^^^^
|
= note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead
error: aborting due to 2 previous errors