mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 04:26:00 +00:00
- 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.
8 lines
379 B
XML
8 lines
379 B
XML
//! Check that we point to `-Whelp` to guide the user to find the list of lints if the user requests
|
|
//! `--print=lints` (which is not a valid print request).
|
|
|
|
//@ compile-flags: --print lints
|
|
//@ error-pattern: error: unknown print request: `lints`
|
|
//@ error-pattern: help: use `-Whelp` to print a list of lints
|
|
//@ error-pattern: help: for more information, see the rustc book
|