Skip to content

Commit 86c1ef6

Browse files
committed
Load target while we still have a rustc for it
1 parent c8d3dfc commit 86c1ef6

File tree

5 files changed

+118
-0
lines changed

5 files changed

+118
-0
lines changed

tests/compile-test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ fn run_ui_cargo() {
115115
"target/ui_test_cargo".into(),
116116
"--manifest-path".into(),
117117
];
118+
// We need to do this while we still have a rustc in the `program` field.
119+
config.fill_host_and_target();
118120
config.program.set_file_name(if cfg!(windows) {
119121
"cargo-clippy.exe"
120122
} else {
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
warning: the "no-" prefix in the feature name "no-qaq" is negative
2+
|
3+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
4+
note: the lint level is defined here
5+
--> src/main.rs:3:9
6+
|
7+
3 | #![warn(clippy::negative_feature_names)]
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
warning: the "no_" prefix in the feature name "no_qaq" is negative
11+
|
12+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
13+
14+
warning: the "not-" prefix in the feature name "not-orz" is negative
15+
|
16+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
17+
18+
warning: the "not_" prefix in the feature name "not_orz" is negative
19+
|
20+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
21+
22+
warning: the "-support" suffix in the feature name "qvq-support" is redundant
23+
|
24+
= help: consider renaming the feature to "qvq"
25+
note: the lint level is defined here
26+
--> src/main.rs:2:9
27+
|
28+
2 | #![warn(clippy::redundant_feature_names)]
29+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30+
31+
warning: the "_support" suffix in the feature name "qvq_support" is redundant
32+
|
33+
= help: consider renaming the feature to "qvq"
34+
35+
warning: the "use-" prefix in the feature name "use-qwq" is redundant
36+
|
37+
= help: consider renaming the feature to "qwq"
38+
39+
warning: the "use_" prefix in the feature name "use_qwq" is redundant
40+
|
41+
= help: consider renaming the feature to "qwq"
42+
43+
warning: the "with-" prefix in the feature name "with-owo" is redundant
44+
|
45+
= help: consider renaming the feature to "owo"
46+
47+
warning: the "with_" prefix in the feature name "with_owo" is redundant
48+
|
49+
= help: consider renaming the feature to "owo"
50+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
warning: the "no-" prefix in the feature name "no-qaq" is negative
2+
|
3+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
4+
note: the lint level is defined here
5+
--> src/main.rs:3:9
6+
|
7+
3 | #![warn(clippy::negative_feature_names)]
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
warning: the "no_" prefix in the feature name "no_qaq" is negative
11+
|
12+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
13+
14+
warning: the "not-" prefix in the feature name "not-orz" is negative
15+
|
16+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
17+
18+
warning: the "not_" prefix in the feature name "not_orz" is negative
19+
|
20+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
21+
22+
warning: the "-support" suffix in the feature name "qvq-support" is redundant
23+
|
24+
= help: consider renaming the feature to "qvq"
25+
note: the lint level is defined here
26+
--> src/main.rs:2:9
27+
|
28+
2 | #![warn(clippy::redundant_feature_names)]
29+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30+
31+
warning: the "_support" suffix in the feature name "qvq_support" is redundant
32+
|
33+
= help: consider renaming the feature to "qvq"
34+
35+
warning: the "use-" prefix in the feature name "use-qwq" is redundant
36+
|
37+
= help: consider renaming the feature to "qwq"
38+
39+
warning: the "use_" prefix in the feature name "use_qwq" is redundant
40+
|
41+
= help: consider renaming the feature to "qwq"
42+
43+
warning: the "with-" prefix in the feature name "with-owo" is redundant
44+
|
45+
= help: consider renaming the feature to "owo"
46+
47+
warning: the "with_" prefix in the feature name "with_owo" is redundant
48+
|
49+
= help: consider renaming the feature to "owo"
50+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: wildcard dependency for `regex`
2+
|
3+
note: the lint level is defined here
4+
--> src/main.rs:2:9
5+
|
6+
2 | #![warn(clippy::wildcard_dependencies)]
7+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: wildcard dependency for `regex`
2+
|
3+
note: the lint level is defined here
4+
--> src/main.rs:2:9
5+
|
6+
2 | #![warn(clippy::wildcard_dependencies)]
7+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+

0 commit comments

Comments
 (0)