From fd1b671100a20a0024e91364ea0fba48867d599f Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 6 Sep 2023 21:52:00 -0700 Subject: [PATCH] Add tracking issue number --- src/bin/cargo/commands/clean.rs | 10 ++++++---- tests/testsuite/clean.rs | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/bin/cargo/commands/clean.rs b/src/bin/cargo/commands/clean.rs index d538fb243543..71d73d341b47 100644 --- a/src/bin/cargo/commands/clean.rs +++ b/src/bin/cargo/commands/clean.rs @@ -176,10 +176,12 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult { } let unstable_gc = |opt| { - // TODO: issue number - config - .cli_unstable() - .fail_if_stable_opt_custom_z(opt, 0, "gc", config.cli_unstable().gc) + config.cli_unstable().fail_if_stable_opt_custom_z( + opt, + 12633, + "gc", + config.cli_unstable().gc, + ) }; let unstable_cache_opt = |opt| -> CargoResult> { let arg = args.get_one::(opt).map(String::as_str); diff --git a/tests/testsuite/clean.rs b/tests/testsuite/clean.rs index 851c271e7312..0577e0a663d3 100644 --- a/tests/testsuite/clean.rs +++ b/tests/testsuite/clean.rs @@ -685,7 +685,7 @@ fn clean_dry_run_gated() { .with_stderr("\ error: the `dry-run` flag is unstable, and only available on the nightly channel of Cargo, but this is the `stable` channel See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels. -See https://github.com/rust-lang/cargo/issues/0 for more information about the `dry-run` flag. +See https://github.com/rust-lang/cargo/issues/12633 for more information about the `dry-run` flag. ") .run(); }