@@ -390,7 +390,7 @@ mod desc {
390390 pub const parse_stack_protector: & str =
391391 "one of (`none` (default), `basic`, `strong`, or `all`)" ;
392392 pub const parse_branch_protection: & str =
393- "a `+ ` separated combination of `bti`, `b-key`, `pac-ret`, or `leaf`" ;
393+ "a `, ` separated combination of `bti`, `b-key`, `pac-ret`, or `leaf`" ;
394394}
395395
396396mod parse {
@@ -935,7 +935,7 @@ mod parse {
935935 crate fn parse_branch_protection ( slot : & mut BranchProtection , v : Option < & str > ) -> bool {
936936 match v {
937937 Some ( s) => {
938- for opt in s. split ( '+ ' ) {
938+ for opt in s. split ( ', ' ) {
939939 match opt {
940940 "bti" => slot. bti = true ,
941941 "pac-ret" if slot. pac_ret . is_none ( ) => {
@@ -953,7 +953,6 @@ mod parse {
953953 } ;
954954 }
955955 }
956-
957956 _ => return false ,
958957 }
959958 true
@@ -971,8 +970,6 @@ options! {
971970
972971 ar: String = ( String :: new( ) , parse_string, [ UNTRACKED ] ,
973972 "this option is deprecated and does nothing" ) ,
974- branch_protection: BranchProtection = ( BranchProtection :: default ( ) , parse_branch_protection, [ TRACKED ] ,
975- "set options for branch target identification and pointer authentication on AArch64" ) ,
976973 code_model: Option <CodeModel > = ( None , parse_code_model, [ TRACKED ] ,
977974 "choose the code model to use (`rustc --print code-models` for details)" ) ,
978975 codegen_units: Option <usize > = ( None , parse_opt_number, [ UNTRACKED ] ,
@@ -1101,6 +1098,8 @@ options! {
11011098 (default: no)") ,
11021099 borrowck: String = ( "migrate" . to_string( ) , parse_string, [ UNTRACKED ] ,
11031100 "select which borrowck is used (`mir` or `migrate`) (default: `migrate`)" ) ,
1101+ branch_protection: BranchProtection = ( BranchProtection :: default ( ) , parse_branch_protection, [ TRACKED ] ,
1102+ "set options for branch target identification and pointer authentication on AArch64" ) ,
11041103 cgu_partitioning_strategy: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
11051104 "the codegen unit partitioning strategy to use" ) ,
11061105 chalk: bool = ( false , parse_bool, [ TRACKED ] ,
0 commit comments