Skip to content

Commit 6f76db6

Browse files
committed
Auto merge of #10077 - not-fl3:profile_checking_doc_comments, r=Eh2406
Make ProfileChecking comments a doc comments A little PR that makes rustdoc render comments for ProfileChecking struct. Before: ![image](https://user-images.githubusercontent.com/910977/141529033-34bca263-abb1-4a1d-8e13-3c42edc2189e.png) After: ![image](https://user-images.githubusercontent.com/910977/141529011-756ac54f-c0b2-4c03-bdb6-c9434e00afe5.png)
2 parents e11cd81 + 4dc7d08 commit 6f76db6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,15 @@ pub fn subcommand(name: &'static str) -> App {
287287
])
288288
}
289289

290-
// Determines whether or not to gate `--profile` as unstable when resolving it.
290+
/// Determines whether or not to gate `--profile` as unstable when resolving it.
291291
pub enum ProfileChecking {
292-
// `cargo rustc` historically has allowed "test", "bench", and "check". This
293-
// variant explicitly allows those.
292+
/// `cargo rustc` historically has allowed "test", "bench", and "check". This
293+
/// variant explicitly allows those.
294294
LegacyRustc,
295-
// `cargo check` and `cargo fix` historically has allowed "test". This variant
296-
// explicitly allows that on stable.
295+
/// `cargo check` and `cargo fix` historically has allowed "test". This variant
296+
/// explicitly allows that on stable.
297297
LegacyTestOnly,
298-
// All other commands, which allow any valid custom named profile.
298+
/// All other commands, which allow any valid custom named profile.
299299
Custom,
300300
}
301301

0 commit comments

Comments
 (0)