Skip to content

Commit 3093018

Browse files
committed
Tweak parse_opt_uint.
Don't set `slot` on failure, like all the other `parse_*` functions.
1 parent 7ec7b57 commit 3093018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_session/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ macro_rules! options {
421421
fn parse_opt_uint(slot: &mut Option<usize>, v: Option<&str>) -> bool {
422422
match v {
423423
Some(s) => { *slot = s.parse().ok(); slot.is_some() }
424-
None => { *slot = None; false }
424+
None => false
425425
}
426426
}
427427

0 commit comments

Comments
 (0)