diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2022-06-21 18:55:24 -0400 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2022-06-22 17:47:00 -0500 |
| commit | 08105e80b7c48782cfd7acbf3695c7f14c839cfd (patch) | |
| tree | 3cd541cb7e29ef7528a8e14f707834134412c1b9 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | a18709156818a1205e9b5f89192808b651c6c59d (diff) | |
| download | rust-08105e80b7c48782cfd7acbf3695c7f14c839cfd.tar.gz rust-08105e80b7c48782cfd7acbf3695c7f14c839cfd.zip | |
Fix issue where `cargo fmt --version` would not display version info
Fixes 5395 In PR 5239 we switched from using `structopt` to `clap`. It seems that the default behavior for `clap` is to override the `--version` flag, which prevented our custom version display code from running. The fix as outlined in https://github.com/clap-rs/clap/issues/3405 was to set `#[clap(global_setting(AppSettings::NoAutoVersion))]` to prevent clap from setting its own default behavior for the `--version` flag.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
