diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-17 17:40:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-17 17:40:27 +0200 |
| commit | d2db1c1df9bae47259350a3240d69c1412edeb92 (patch) | |
| tree | dfd4a48aee0ed43cbd7804321b09f76ad11e1af5 /tests/rustdoc-js-std/parser-weird-queries.js | |
| parent | da43826398d2d5aa7f0f1e2879af2bd80910553c (diff) | |
| parent | 8562110e0d8ef293563200d15d466c012e936ff7 (diff) | |
| download | rust-d2db1c1df9bae47259350a3240d69c1412edeb92.tar.gz rust-d2db1c1df9bae47259350a3240d69c1412edeb92.zip | |
Rollup merge of #139850 - xizheyin:issue-138698, r=jieyouxu
Hide unstable print kinds within emit_unknown_print_request_help in stable channel Fixes #138698 We need to get the channel from `matches`. However, since `matches`(Line 1169) is constructed after `rustc_optgroups` (Line1165, where `RustcOptGroup::value_hint` is generated, i.e. what `rustc --print print` prints), I've left it unchanged here for now. https://github.com/rust-lang/rust/blob/2da29dbe8fe23df1c7c4ab1d8740ca3c32b15526/compiler/rustc_driver_impl/src/lib.rs#L1161-L1169 There is actually a way to manually parse the `--crate-name` parameter, but I'm afraid that's an unorthodox practice. So I conservatively just modified `emit_unknown_print_request_help` to print different parameters depending on whether they are nightly or not when passing the error parameter. r? ```@jieyouxu```
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
0 files changed, 0 insertions, 0 deletions
