Skip to content

Commit

Permalink
Make ProfileChecking comments a doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Nov 12, 2021
1 parent e11cd81 commit 4dc7d08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 4dc7d08

Please sign in to comment.