Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {

let fmt = if let Some(fmt) = args._value_of("message-format") {
gctx.cli_unstable()
.fail_if_stable_opt("--message-format", 11666)?;
.fail_if_stable_opt("--message-format", 15353)?;
fmt.parse()?
} else {
PackageMessageFormat::Human
Expand Down
3 changes: 2 additions & 1 deletion src/doc/src/reference/unstable.md
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,8 @@ Specify which packages participate in [feature unification](../reference/feature

## 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.
Currently, it only works with the `--list` flag and affects the file listing format,
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/package_message_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn gated() {
.with_status(101)
.with_stderr_data(str![[r#"
[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();
Expand Down