Skip to content

Commit 761ba5b

Browse files
compiler: parse the empty frame-pointer
1 parent c72a6ad commit 761ba5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_session/src/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ mod parse {
675675
pub(crate) fn parse_frame_pointer(slot: &mut FramePointer, v: Option<&str>) -> bool {
676676
let mut yes = false;
677677
match v {
678-
Some(_) if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
679-
Some(_) if parse_bool(&mut yes, v) => slot.ratchet(FramePointer::MayOmit),
678+
_ if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
679+
_ if parse_bool(&mut yes, v) => slot.ratchet(FramePointer::MayOmit),
680680
Some("always") => slot.ratchet(FramePointer::Always),
681681
Some("non-leaf") => slot.ratchet(FramePointer::NonLeaf),
682682
_ => return false,

0 commit comments

Comments
 (0)