Skip to content

Commit f2cde8e

Browse files
committed
Adjust rustc-print-info-issue-138612.rs
- Document test intent to check for `-Whelp` suggestion if `--print=lints` was specified. - Move this test under `tests/ui/print-request/` and rename it to `print-lints-help.rs` to better reflect what it is checking.
1 parent f1b8d89 commit f2cde8e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//! Check that we point to `-Whelp` to guide the user to find the list of lints if the user requests
2+
//! `--print=lints` (which is not a valid print request).
3+
4+
//@ compile-flags: --print lints
5+
//@ error-pattern: error: unknown print request: `lints`
6+
//@ error-pattern: help: use `-Whelp` to print a list of lints
7+
//@ error-pattern: help: for more information, see the rustc book
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: unknown print request: `lints`
22
|
3-
= help: valid print requests are: `all-target-specs-json`, `calling-conventions`, `cfg`, `check-cfg`, `code-models`, `crate-name`, `deployment-target`, `file-names`, `host-tuple`, `link-args`, `native-static-libs`, `relocation-models`, `split-debuginfo`, `stack-protector-strategies`, `sysroot`, `target-cpus`, `target-features`, `target-libdir`, `target-list`, `target-spec-json`, `tls-models`
3+
= help: valid print requests are: `all-target-specs-json`, `calling-conventions`, `cfg`, `check-cfg`, `code-models`, `crate-name`, `deployment-target`, `file-names`, `host-tuple`, `link-args`, `native-static-libs`, `relocation-models`, `split-debuginfo`, `stack-protector-strategies`, `supported-crate-types`, `sysroot`, `target-cpus`, `target-features`, `target-libdir`, `target-list`, `target-spec-json`, `tls-models`
44
= help: use `-Whelp` to print a list of lints
55
= help: for more information, see the rustc book: https://doc.rust-lang.org/rustc/command-line-arguments.html#--print-print-compiler-information
66

tests/ui/rustc-print-info-issue-138612.rs

-2
This file was deleted.

0 commit comments

Comments
 (0)