We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_bool
1 parent c55c682 commit 8818eacCopy full SHA for 8818eac
src/librustc_session/options.rs
@@ -299,6 +299,9 @@ macro_rules! options {
299
}
300
)*
301
302
+ /// Set a flag to true. Note that it cannot set the flag to false, so
303
+ /// using this parser in combination with a flag that defaults to true
304
+ /// is useless; the flag will always be true.
305
fn parse_bool(slot: &mut bool, v: Option<&str>) -> bool {
306
match v {
307
Some(..) => false,
0 commit comments