fix(package): update tracking issue for --message-format

This commit is contained in:
Weihang Lo 2025-03-26 13:37:01 -04:00
parent 280efd3dce
commit a24066a79c
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@ pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {
let fmt = if let Some(fmt) = args._value_of("message-format") { let fmt = if let Some(fmt) = args._value_of("message-format") {
gctx.cli_unstable() gctx.cli_unstable()
.fail_if_stable_opt("--message-format", 11666)?; .fail_if_stable_opt("--message-format", 15353)?;
fmt.parse()? fmt.parse()?
} else { } else {
PackageMessageFormat::Human PackageMessageFormat::Human

View File

@ -1892,7 +1892,8 @@ Specify which packages participate in [feature unification](../reference/feature
## Package message format ## Package message format
* Tracking Issue: [#11666](https://github.com/rust-lang/cargo/issues/11666) * Original Issue: [#11666](https://github.com/rust-lang/cargo/issues/11666)
* Tracking Issue: [#15353](https://github.com/rust-lang/cargo/issues/15353)
The `--message-format` flag in `cargo package` controls the output message format. The `--message-format` flag in `cargo package` controls the output message format.
Currently, it only works with the `--list` flag and affects the file listing format, Currently, it only works with the `--list` flag and affects the file listing format,

View File

@ -26,7 +26,7 @@ fn gated() {
.with_status(101) .with_status(101)
.with_stderr_data(str![[r#" .with_stderr_data(str![[r#"
[ERROR] the `--message-format` flag is unstable, pass `-Z unstable-options` to enable it [ERROR] the `--message-format` flag is unstable, pass `-Z unstable-options` to enable it
See https://github.com/rust-lang/cargo/issues/11666 for more information about the `--message-format` flag. See https://github.com/rust-lang/cargo/issues/15353 for more information about the `--message-format` flag.
"#]]) "#]])
.run(); .run();