File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1421,11 +1421,13 @@ mod parse {
1421
1421
slot : & mut Option < FramePointer > ,
1422
1422
v : Option < & str > ,
1423
1423
) -> bool {
1424
+ let mut always = false ;
1424
1425
match v {
1425
- Some ( "always" | "yes" | "y" | "on" | "true" ) | None => {
1426
- * slot = Some ( FramePointer :: Always )
1426
+ Some ( v ) if parse_bool ( & mut always , Some ( v ) ) => {
1427
+ * slot = Some ( if always { FramePointer :: Always } else { FramePointer :: MayOmit } )
1427
1428
}
1428
- Some ( "never" | "false" | "no" | "n" | "off" ) => * slot = Some ( FramePointer :: MayOmit ) ,
1429
+ Some ( "always" ) | None => * slot = Some ( FramePointer :: Always ) ,
1430
+ Some ( "never" ) => * slot = Some ( FramePointer :: MayOmit ) ,
1429
1431
Some ( "non-leaf" ) => * slot = Some ( FramePointer :: NonLeaf ) ,
1430
1432
Some ( _) => return false ,
1431
1433
}
You can’t perform that action at this time.
0 commit comments