summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr')
-rw-r--r--src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr b/src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr
new file mode 100644
index 000000000..76c487fb1
--- /dev/null
+++ b/src/tools/clippy/tests/ui-internal/disallow_struct_span_lint.stderr
@@ -0,0 +1,17 @@
+error: use of a disallowed method `rustc_lint::context::LintContext::struct_span_lint`
+ --> $DIR/disallow_struct_span_lint.rs:14:5
+ |
+LL | cx.struct_span_lint(lint, span, msg, |b| b);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = 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
+ |
+LL | tcx.struct_span_lint_hir(lint, hir_id, span, msg, |b| b);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+