From 4dc7d08a9ac99616eb51a15469707e1ee1981adb Mon Sep 17 00:00:00 2001 From: Fedor Logachev Date: Fri, 12 Nov 2021 14:11:38 -0600 Subject: [PATCH] Make ProfileChecking comments a doc comments --- src/cargo/util/command_prelude.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cargo/util/command_prelude.rs b/src/cargo/util/command_prelude.rs index d0cf17824b1..7389ec56e39 100644 --- a/src/cargo/util/command_prelude.rs +++ b/src/cargo/util/command_prelude.rs @@ -287,15 +287,15 @@ pub fn subcommand(name: &'static str) -> App { ]) } -// Determines whether or not to gate `--profile` as unstable when resolving it. +/// Determines whether or not to gate `--profile` as unstable when resolving it. pub enum ProfileChecking { - // `cargo rustc` historically has allowed "test", "bench", and "check". This - // variant explicitly allows those. + /// `cargo rustc` historically has allowed "test", "bench", and "check". This + /// variant explicitly allows those. LegacyRustc, - // `cargo check` and `cargo fix` historically has allowed "test". This variant - // explicitly allows that on stable. + /// `cargo check` and `cargo fix` historically has allowed "test". This variant + /// explicitly allows that on stable. LegacyTestOnly, - // All other commands, which allow any valid custom named profile. + /// All other commands, which allow any valid custom named profile. Custom, }