diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs index dea7ffd6bbb..2de3bea7086 100644 --- a/src/librustc_session/options.rs +++ b/src/librustc_session/options.rs @@ -421,7 +421,7 @@ fn parse_uint(slot: &mut usize, v: Option<&str>) -> bool { fn parse_opt_uint(slot: &mut Option, v: Option<&str>) -> bool { match v { Some(s) => { *slot = s.parse().ok(); slot.is_some() } - None => { *slot = None; false } + None => false } }