diff options
| author | Philipp Krones <hello@philkrones.com> | 2024-07-11 15:44:03 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2024-07-11 15:44:03 +0200 |
| commit | 2ed6ed41beebb2aa2ffc91ab0da4c5f70c40366b (patch) | |
| tree | f7ee58daa96b6179271bf0ccf98b5ff00ec17d4d /src/tools/clippy/tests/ui-internal | |
| parent | fdf7ea6b5b1cac83c0f29e681202cf18bf25b01c (diff) | |
| parent | b794b8e08c16517a941dc598bb1483e8e12a8592 (diff) | |
| download | rust-2ed6ed41beebb2aa2ffc91ab0da4c5f70c40366b.tar.gz rust-2ed6ed41beebb2aa2ffc91ab0da4c5f70c40366b.zip | |
Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into clippy-subtree-update
Diffstat (limited to 'src/tools/clippy/tests/ui-internal')
| -rw-r--r-- | src/tools/clippy/tests/ui-internal/disallow_span_lint.stderr | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/tools/clippy/tests/ui-internal/disallow_span_lint.stderr b/src/tools/clippy/tests/ui-internal/disallow_span_lint.stderr index 1be4b665bcb..66eda44f745 100644 --- a/src/tools/clippy/tests/ui-internal/disallow_span_lint.stderr +++ b/src/tools/clippy/tests/ui-internal/disallow_span_lint.stderr @@ -1,22 +1,18 @@ error: use of a disallowed method `rustc_lint::context::LintContext::span_lint` - --> tests/ui-internal/disallow_span_lint.rs:14:5 + --> tests/ui-internal/disallow_span_lint.rs:14:8 | -LL | / cx.span_lint(lint, span, |lint| { -LL | | lint.primary_message(msg); -LL | | }); - | |______^ +LL | cx.span_lint(lint, span, |lint| { + | ^^^^^^^^^ | = note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead (from clippy.toml) = 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::node_span_lint` - --> tests/ui-internal/disallow_span_lint.rs:20:5 + --> tests/ui-internal/disallow_span_lint.rs:20:9 | -LL | / tcx.node_span_lint(lint, hir_id, span, |lint| { -LL | | lint.primary_message(msg); -LL | | }); - | |______^ +LL | tcx.node_span_lint(lint, hir_id, span, |lint| { + | ^^^^^^^^^^^^^^ | = 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) |
