2023-11-16 12:13:24 -06:00
|
|
|
error: use of a disallowed method `rustc_lint::context::LintContext::struct_span_lint`
|
|
|
|
--> $DIR/disallow_struct_span_lint.rs:14:5
|
|
|
|
|
|
2023-12-28 12:33:07 -06:00
|
|
|
LL | cx.struct_span_lint(lint, span, msg, |_| {});
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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)]`
|
|
|
|
|
|
|
|
error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::struct_span_lint_hir`
|
|
|
|
--> $DIR/disallow_struct_span_lint.rs:24:5
|
|
|
|
|
|
2023-12-28 12:33:07 -06:00
|
|
|
LL | tcx.struct_span_lint_hir(lint, hir_id, span, msg, |_| {});
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-11-16 12:13:24 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|