mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Convenience funcs for some_option.unwrap_or(...)
This ensures consistent handling of default values for options that are None if not specified on the command line.
This commit is contained in:
parent
3043a7b5d9
commit
ae288df51f
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
|
||||||
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
|
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
|
||||||
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
|
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
|
||||||
// use for Clippy.
|
// use for Clippy.
|
||||||
config.opts.debugging_opts.mir_opt_level = Some(0);
|
config.opts.debugging_opts.mir_opt_level = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue