File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ fn verify_feature_enabled(
177
177
. annotation ( Level :: Error . span ( lint_span. key ) . label ( & label) )
178
178
. fold ( true ) ,
179
179
)
180
- . footer ( inherited_note)
181
180
. footer ( Level :: Help . title ( & help) )
181
+ . footer ( inherited_note)
182
182
} ;
183
183
184
184
* error_count += 1 ;
@@ -545,6 +545,9 @@ fn output_unknown_lints(
545
545
emitted_source = Some ( UNKNOWN_LINTS . emitted_source ( lint_level, reason) ) ;
546
546
footers. push ( Level :: Note . title ( emitted_source. as_ref ( ) . unwrap ( ) ) ) ;
547
547
}
548
+ if let Some ( help) = help. as_ref ( ) {
549
+ footers. push ( Level :: Help . title ( help) ) ;
550
+ }
548
551
549
552
let mut message = if let Some ( span) =
550
553
get_key_value_span ( manifest. document ( ) , & [ "lints" , "cargo" , lint_name] )
@@ -588,9 +591,6 @@ fn output_unknown_lints(
588
591
)
589
592
} ;
590
593
591
- if let Some ( help) = help. as_ref ( ) {
592
- footers. push ( Level :: Help . title ( help) ) ;
593
- }
594
594
for footer in footers {
595
595
message = message. footer ( footer) ;
596
596
}
Original file line number Diff line number Diff line change @@ -299,26 +299,26 @@ workspace = true
299
299
6 | im_a_teapot = { level = "warn", priority = 10 }
300
300
| ^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled
301
301
|
302
+ = [HELP] consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest
302
303
[NOTE] `cargo::im_a_teapot` was inherited
303
304
--> foo/Cargo.toml:9:1
304
305
|
305
306
9 | workspace = true
306
307
| ----------------
307
308
|
308
- = [HELP] consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest
309
309
[ERROR] use of unstable lint `test_dummy_unstable`
310
310
--> Cargo.toml:7:1
311
311
|
312
312
7 | test_dummy_unstable = { level = "forbid", priority = -1 }
313
313
| ^^^^^^^^^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled
314
314
|
315
+ = [HELP] consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest
315
316
[NOTE] `cargo::test_dummy_unstable` was inherited
316
317
--> foo/Cargo.toml:9:1
317
318
|
318
319
9 | workspace = true
319
320
| ----------------
320
321
|
321
- = [HELP] consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest
322
322
[ERROR] encountered 2 errors(s) while verifying lints
323
323
324
324
"# ] ] )
You can’t perform that action at this time.
0 commit comments