Skip to content

Commit 74f611f

Browse files
committed
Auto merge of #12306 - Alexendoo:dir-replacement, r=flip1995
Remove `$DIR` replacement This won't cause problems because the old `$DIR` replacement was based on the parent of the test path, which for us is relative: https://github.com/rust-lang/rust-clippy/blob/5471e0645a497ab331ae38adc965aa15b74aa8c9/tests/compile-test.rs#L122 The new pattern being `"tests/{test_dir}"` is more clearly relative That's why we have custom filters applied to the toml/cargo tests where absolute paths do appear in the output https://github.com/rust-lang/rust-clippy/blob/5471e0645a497ab331ae38adc965aa15b74aa8c9/tests/compile-test.rs#L198-L202 Removing it allows clicking the paths in the terminal changelog: none r? `@flip1995`
2 parents 2a3c033 + 740d89e commit 74f611f

File tree

932 files changed

+9170
-9171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

932 files changed

+9170
-9171
lines changed

.github/driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test "$sysroot" = $desired_sysroot
3232
)
3333

3434
# Check that the --sysroot argument is only passed once via arg_file.txt (SYSROOT is ignored)
35-
(
35+
(
3636
echo "fn main() {}" > target/driver_test.rs
3737
echo "--sysroot="$(./target/debug/clippy-driver --print sysroot)"" > arg_file.txt
3838
echo "--verbose" >> arg_file.txt
@@ -45,7 +45,7 @@ unset CARGO_MANIFEST_DIR
4545
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
4646
# FIXME: How to match the clippy invocation in compile-test.rs?
4747
./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr && exit 1
48-
sed -e "s,tests/ui,\$DIR," -e "/= help: for/d" double_neg.stderr > normalized.stderr
48+
sed -e "/= help: for/d" double_neg.stderr > normalized.stderr
4949
diff -u normalized.stderr tests/ui/double_neg.stderr
5050

5151
# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same

book/src/development/emitting_lints.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The output looks something like this (from the example earlier):
8282

8383
```text
8484
error: an inclusive range would be more readable
85-
--> $DIR/range_plus_minus_one.rs:37:14
85+
--> tests/ui/range_plus_minus_one.rs:37:14
8686
|
8787
LL | for _ in 1..1 + 1 {}
8888
| ^^^^^^^^ help: use: `1..=1`
@@ -135,14 +135,14 @@ Examples:
135135

136136
```text
137137
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
138-
--> $DIR/drop_forget_ref.rs:10:5
138+
--> tests/ui/drop_forget_ref.rs:10:5
139139
|
140140
10 | forget(&SomeStruct);
141141
| ^^^^^^^^^^^^^^^^^^^
142142
|
143143
= note: `-D clippy::forget-ref` implied by `-D warnings`
144144
note: argument has type &SomeStruct
145-
--> $DIR/drop_forget_ref.rs:10:12
145+
--> tests/ui/drop_forget_ref.rs:10:12
146146
|
147147
10 | forget(&SomeStruct);
148148
| ^^^^^^^^^^^
@@ -158,7 +158,7 @@ Example:
158158

159159
```text
160160
error: constant division of 0.0 with 0.0 will always result in NaN
161-
--> $DIR/zero_div_zero.rs:6:25
161+
--> tests/ui/zero_div_zero.rs:6:25
162162
|
163163
6 | let other_f64_nan = 0.0f64 / 0.0;
164164
| ^^^^^^^^^^^^
@@ -176,7 +176,7 @@ Example:
176176

177177
```text
178178
error: This `.fold` can be more succinctly expressed as `.any`
179-
--> $DIR/methods.rs:390:13
179+
--> tests/ui/methods.rs:390:13
180180
|
181181
390 | let _ = (0..3).fold(false, |acc, x| acc || x > 2);
182182
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.any(|x| x > 2)`

book/src/development/writing_tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ failures:
9797
---- compile_test stdout ----
9898
normalized stderr:
9999
error: function called "foo"
100-
--> $DIR/foo_functions.rs:6:12
100+
--> tests/ui/foo_functions.rs:6:12
101101
|
102102
LL | pub fn foo(&self) {}
103103
| ^^^
104104
|
105105
= note: `-D clippy::foo-functions` implied by `-D warnings`
106106
error: function called "foo"
107-
--> $DIR/foo_functions.rs:13:8
107+
--> tests/ui/foo_functions.rs:13:8
108108
|
109109
LL | fn foo(&self) {}
110110
| ^^^
111111
error: function called "foo"
112-
--> $DIR/foo_functions.rs:19:4
112+
--> tests/ui/foo_functions.rs:19:4
113113
|
114114
LL | fn foo() {}
115115
| ^^^

clippy_utils/src/diagnostics.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn docs_link(diag: &mut Diagnostic, lint: &'static Lint) {
4040
///
4141
/// ```ignore
4242
/// error: usage of mem::forget on Drop type
43-
/// --> $DIR/mem_forget.rs:17:5
43+
/// --> tests/ui/mem_forget.rs:17:5
4444
/// |
4545
/// 17 | std::mem::forget(seven);
4646
/// | ^^^^^^^^^^^^^^^^^^^^^^^
@@ -65,7 +65,7 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
6565
///
6666
/// ```text
6767
/// error: constant division of 0.0 with 0.0 will always result in NaN
68-
/// --> $DIR/zero_div_zero.rs:6:25
68+
/// --> tests/ui/zero_div_zero.rs:6:25
6969
/// |
7070
/// 6 | let other_f64_nan = 0.0f64 / 0.0;
7171
/// | ^^^^^^^^^^^^
@@ -103,14 +103,14 @@ pub fn span_lint_and_help<T: LintContext>(
103103
///
104104
/// ```text
105105
/// error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
106-
/// --> $DIR/drop_forget_ref.rs:10:5
106+
/// --> tests/ui/drop_forget_ref.rs:10:5
107107
/// |
108108
/// 10 | forget(&SomeStruct);
109109
/// | ^^^^^^^^^^^^^^^^^^^
110110
/// |
111111
/// = note: `-D clippy::forget-ref` implied by `-D warnings`
112112
/// note: argument has type &SomeStruct
113-
/// --> $DIR/drop_forget_ref.rs:10:12
113+
/// --> tests/ui/drop_forget_ref.rs:10:12
114114
/// |
115115
/// 10 | forget(&SomeStruct);
116116
/// | ^^^^^^^^^^^
@@ -186,7 +186,7 @@ pub fn span_lint_hir_and_then(
186186
///
187187
/// ```text
188188
/// error: This `.fold` can be more succinctly expressed as `.any`
189-
/// --> $DIR/methods.rs:390:13
189+
/// --> tests/ui/methods.rs:390:13
190190
/// |
191191
/// 390 | let _ = (0..3).fold(false, |acc, x| acc || x > 2);
192192
/// | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.any(|x| x > 2)`

tests/compile-test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ fn base_config(test_dir: &str) -> (Config, Args) {
126126
}))
127127
.into();
128128
config.comment_defaults.base().diagnostic_code_prefix = Some(Spanned::dummy("clippy::".into())).into();
129-
config.filter(&format!("tests/{test_dir}"), "$$DIR");
130129
config.with_args(&args);
131130
let current_exe_path = env::current_exe().unwrap();
132131
let deps_path = current_exe_path.parent().unwrap();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
warning: using config file `$DIR/$DIR/multiple_config_files/warn/.clippy.toml`, `$DIR/$DIR/multiple_config_files/warn/clippy.toml` will be ignored
1+
warning: using config file `$DIR/tests/ui-cargo/multiple_config_files/warn/.clippy.toml`, `$DIR/tests/ui-cargo/multiple_config_files/warn/clippy.toml` will be ignored
22

tests/ui-internal/check_clippy_version_attribute.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this item has an invalid `clippy::version` attribute
2-
--> $DIR/check_clippy_version_attribute.rs:40:1
2+
--> tests/ui-internal/check_clippy_version_attribute.rs:40:1
33
|
44
LL | / declare_tool_lint! {
55
LL | | #[clippy::version = "1.2.3.4.5.6"]
@@ -12,15 +12,15 @@ LL | | }
1212
|
1313
= help: please use a valid semantic version, see `doc/adding_lints.md`
1414
note: the lint level is defined here
15-
--> $DIR/check_clippy_version_attribute.rs:1:9
15+
--> tests/ui-internal/check_clippy_version_attribute.rs:1:9
1616
|
1717
LL | #![deny(clippy::internal)]
1818
| ^^^^^^^^^^^^^^^^
1919
= note: `#[deny(clippy::invalid_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
2020
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
2121

2222
error: this item has an invalid `clippy::version` attribute
23-
--> $DIR/check_clippy_version_attribute.rs:48:1
23+
--> tests/ui-internal/check_clippy_version_attribute.rs:48:1
2424
|
2525
LL | / declare_tool_lint! {
2626
LL | | #[clippy::version = "I'm a string"]
@@ -35,7 +35,7 @@ LL | | }
3535
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
3636

3737
error: this lint is missing the `clippy::version` attribute or version value
38-
--> $DIR/check_clippy_version_attribute.rs:59:1
38+
--> tests/ui-internal/check_clippy_version_attribute.rs:59:1
3939
|
4040
LL | / declare_tool_lint! {
4141
LL | | #[clippy::version]
@@ -51,7 +51,7 @@ LL | | }
5151
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
5252

5353
error: this lint is missing the `clippy::version` attribute or version value
54-
--> $DIR/check_clippy_version_attribute.rs:67:1
54+
--> tests/ui-internal/check_clippy_version_attribute.rs:67:1
5555
|
5656
LL | / declare_tool_lint! {
5757
LL | | pub clippy::MISSING_ATTRIBUTE_TWO,

tests/ui-internal/check_formulation.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: non-standard lint formulation
2-
--> $DIR/check_formulation.rs:23:5
2+
--> tests/ui-internal/check_formulation.rs:23:5
33
|
44
LL | /// Check for lint formulations that are correct
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | /// Check for lint formulations that are correct
99
= help: to override `-D warnings` add `#[allow(clippy::almost_standard_lint_formulation)]`
1010

1111
error: non-standard lint formulation
12-
--> $DIR/check_formulation.rs:33:5
12+
--> tests/ui-internal/check_formulation.rs:33:5
1313
|
1414
LL | /// Detects uses of incorrect formulations
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui-internal/collapsible_span_lint_calls.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
error: this call is collapsible
2-
--> $DIR/collapsible_span_lint_calls.rs:35:9
2+
--> tests/ui-internal/collapsible_span_lint_calls.rs:35:9
33
|
44
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
55
LL | | db.span_suggestion(expr.span, help_msg, sugg.to_string(), Applicability::MachineApplicable);
66
LL | | });
77
| |__________^ help: collapse into: `span_lint_and_sugg(cx, TEST_LINT, expr.span, lint_msg, help_msg, sugg.to_string(), Applicability::MachineApplicable)`
88
|
99
note: the lint level is defined here
10-
--> $DIR/collapsible_span_lint_calls.rs:1:9
10+
--> tests/ui-internal/collapsible_span_lint_calls.rs:1:9
1111
|
1212
LL | #![deny(clippy::internal)]
1313
| ^^^^^^^^^^^^^^^^
1414
= note: `#[deny(clippy::collapsible_span_lint_calls)]` implied by `#[deny(clippy::internal)]`
1515

1616
error: this call is collapsible
17-
--> $DIR/collapsible_span_lint_calls.rs:38:9
17+
--> tests/ui-internal/collapsible_span_lint_calls.rs:38:9
1818
|
1919
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
2020
LL | | db.span_help(expr.span, help_msg);
2121
LL | | });
2222
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), help_msg)`
2323

2424
error: this call is collapsible
25-
--> $DIR/collapsible_span_lint_calls.rs:41:9
25+
--> tests/ui-internal/collapsible_span_lint_calls.rs:41:9
2626
|
2727
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
2828
LL | | db.help(help_msg);
2929
LL | | });
3030
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, None, help_msg)`
3131

3232
error: this call is collapsible
33-
--> $DIR/collapsible_span_lint_calls.rs:44:9
33+
--> tests/ui-internal/collapsible_span_lint_calls.rs:44:9
3434
|
3535
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
3636
LL | | db.span_note(expr.span, note_msg);
3737
LL | | });
3838
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), note_msg)`
3939

4040
error: this call is collapsible
41-
--> $DIR/collapsible_span_lint_calls.rs:47:9
41+
--> tests/ui-internal/collapsible_span_lint_calls.rs:47:9
4242
|
4343
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
4444
LL | | db.note(note_msg);

tests/ui-internal/default_deprecation_reason.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: the lint `COOL_LINT_DEFAULT` has the default deprecation reason
2-
--> $DIR/default_deprecation_reason.rs:8:1
2+
--> tests/ui-internal/default_deprecation_reason.rs:8:1
33
|
44
LL | / declare_deprecated_lint! {
55
LL | | /// ### What it does
@@ -11,7 +11,7 @@ LL | | }
1111
| |_^
1212
|
1313
note: the lint level is defined here
14-
--> $DIR/default_deprecation_reason.rs:1:9
14+
--> tests/ui-internal/default_deprecation_reason.rs:1:9
1515
|
1616
LL | #![deny(clippy::internal)]
1717
| ^^^^^^^^^^^^^^^^

tests/ui-internal/default_lint.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: the lint `TEST_LINT_DEFAULT` has the default lint description
2-
--> $DIR/default_lint.rs:18:1
2+
--> tests/ui-internal/default_lint.rs:18:1
33
|
44
LL | / declare_tool_lint! {
55
LL | | pub clippy::TEST_LINT_DEFAULT,
@@ -10,7 +10,7 @@ LL | | }
1010
| |_^
1111
|
1212
note: the lint level is defined here
13-
--> $DIR/default_lint.rs:1:9
13+
--> tests/ui-internal/default_lint.rs:1:9
1414
|
1515
LL | #![deny(clippy::internal)]
1616
| ^^^^^^^^^^^^^^^^

tests/ui-internal/disallow_span_lint.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: use of a disallowed method `rustc_lint::context::LintContext::span_lint`
2-
--> $DIR/disallow_span_lint.rs:14:5
2+
--> tests/ui-internal/disallow_span_lint.rs:14:5
33
|
44
LL | cx.span_lint(lint, span, msg, |_| {});
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | cx.span_lint(lint, span, msg, |_| {});
88
= help: to override `-D warnings` add `#[allow(clippy::disallowed_methods)]`
99

1010
error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::node_span_lint`
11-
--> $DIR/disallow_span_lint.rs:24:5
11+
--> tests/ui-internal/disallow_span_lint.rs:24:5
1212
|
1313
LL | tcx.node_span_lint(lint, hir_id, span, msg, |_| {});
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui-internal/interning_defined_symbol.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
error: interning a defined symbol
2-
--> $DIR/interning_defined_symbol.rs:17:13
2+
--> tests/ui-internal/interning_defined_symbol.rs:17:13
33
|
44
LL | let _ = Symbol::intern("f32");
55
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
66
|
77
note: the lint level is defined here
8-
--> $DIR/interning_defined_symbol.rs:1:9
8+
--> tests/ui-internal/interning_defined_symbol.rs:1:9
99
|
1010
LL | #![deny(clippy::internal)]
1111
| ^^^^^^^^^^^^^^^^
1212
= note: `#[deny(clippy::interning_defined_symbol)]` implied by `#[deny(clippy::internal)]`
1313

1414
error: interning a defined symbol
15-
--> $DIR/interning_defined_symbol.rs:20:13
15+
--> tests/ui-internal/interning_defined_symbol.rs:20:13
1616
|
1717
LL | let _ = sym!(f32);
1818
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
1919

2020
error: interning a defined symbol
21-
--> $DIR/interning_defined_symbol.rs:23:13
21+
--> tests/ui-internal/interning_defined_symbol.rs:23:13
2222
|
2323
LL | let _ = Symbol::intern("proc-macro");
2424
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
2525

2626
error: interning a defined symbol
27-
--> $DIR/interning_defined_symbol.rs:26:13
27+
--> tests/ui-internal/interning_defined_symbol.rs:26:13
2828
|
2929
LL | let _ = Symbol::intern("self");
3030
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`

tests/ui-internal/invalid_msrv_attr_impl.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: `extract_msrv_attr!` macro missing from `LateLintPass` implementation
2-
--> $DIR/invalid_msrv_attr_impl.rs:28:1
2+
--> tests/ui-internal/invalid_msrv_attr_impl.rs:28:1
33
|
44
LL | impl LateLintPass<'_> for Pass {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: the lint level is defined here
8-
--> $DIR/invalid_msrv_attr_impl.rs:1:9
8+
--> tests/ui-internal/invalid_msrv_attr_impl.rs:1:9
99
|
1010
LL | #![deny(clippy::internal)]
1111
| ^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL + extract_msrv_attr!(LateContext);
1717
|
1818

1919
error: `extract_msrv_attr!` macro missing from `EarlyLintPass` implementation
20-
--> $DIR/invalid_msrv_attr_impl.rs:32:1
20+
--> tests/ui-internal/invalid_msrv_attr_impl.rs:32:1
2121
|
2222
LL | impl EarlyLintPass for Pass {
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui-internal/invalid_paths.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: invalid path
2-
--> $DIR/invalid_paths.rs:15:5
2+
--> tests/ui-internal/invalid_paths.rs:15:5
33
|
44
LL | pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,13 +8,13 @@ LL | pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"
88
= help: to override `-D warnings` add `#[allow(clippy::invalid_paths)]`
99

1010
error: invalid path
11-
--> $DIR/invalid_paths.rs:18:5
11+
--> tests/ui-internal/invalid_paths.rs:18:5
1212
|
1313
LL | pub const BAD_CRATE_PATH: [&str; 2] = ["bad", "path"];
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

1616
error: invalid path
17-
--> $DIR/invalid_paths.rs:21:5
17+
--> tests/ui-internal/invalid_paths.rs:21:5
1818
|
1919
LL | pub const BAD_MOD_PATH: [&str; 2] = ["std", "xxx"];
2020
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui-internal/lint_without_lint_pass.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: the lint `TEST_LINT` is not added to any `LintPass`
2-
--> $DIR/lint_without_lint_pass.rs:12:1
2+
--> tests/ui-internal/lint_without_lint_pass.rs:12:1
33
|
44
LL | / declare_tool_lint! {
55
LL | | pub clippy::TEST_LINT,
@@ -10,7 +10,7 @@ LL | | }
1010
| |_^
1111
|
1212
note: the lint level is defined here
13-
--> $DIR/lint_without_lint_pass.rs:1:9
13+
--> tests/ui-internal/lint_without_lint_pass.rs:1:9
1414
|
1515
LL | #![deny(clippy::internal)]
1616
| ^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)