File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -322,14 +322,22 @@ pub trait ArgMatchesExt {
322
322
}
323
323
324
324
if self . _is_present ( "release" ) {
325
- match specified_profile {
326
- None | Some ( ProfileKind :: Release ) => Ok ( ProfileKind :: Release ) ,
327
- _ => failure:: bail!( "Conflicting usage of --profile and --release" ) ,
325
+ if !config. cli_unstable ( ) . unstable_options {
326
+ Ok ( ProfileKind :: Release )
327
+ } else {
328
+ match specified_profile {
329
+ None | Some ( ProfileKind :: Release ) => Ok ( ProfileKind :: Release ) ,
330
+ _ => failure:: bail!( "Conflicting usage of --profile and --release" ) ,
331
+ }
328
332
}
329
333
} else if self . _is_present ( "debug" ) {
330
- match specified_profile {
331
- None | Some ( ProfileKind :: Dev ) => Ok ( ProfileKind :: Dev ) ,
332
- _ => failure:: bail!( "Conflicting usage of --profile and --debug" ) ,
334
+ if !config. cli_unstable ( ) . unstable_options {
335
+ Ok ( ProfileKind :: Dev )
336
+ } else {
337
+ match specified_profile {
338
+ None | Some ( ProfileKind :: Dev ) => Ok ( ProfileKind :: Dev ) ,
339
+ _ => failure:: bail!( "Conflicting usage of --profile and --debug" ) ,
340
+ }
333
341
}
334
342
} else {
335
343
Ok ( specified_profile. unwrap_or ( default) )
You can’t perform that action at this time.
0 commit comments