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.
1 parent fb877e3 commit a6fc23bCopy full SHA for a6fc23b
1 file changed
src/rustflags.rs
@@ -8,10 +8,9 @@ pub(crate) fn toml() -> toml::Value {
8
rustflags.push(lint);
9
}
10
11
- if let Some(flags) = std::env::var("RUSTFLAGS").ok() {
12
- // TODO: could parse this properly and allowlist (or blocklist?)
13
- // certain flags. This is good enough to at least support
14
- // `cargo-llvm-cov`.
+ if let Ok(flags) = std::env::var("RUSTFLAGS") {
+ // TODO: could parse this properly and allowlist or blocklist certain
+ // flags. This is good enough to at least support cargo-llvm-cov.
15
if flags.contains("-C instrument-coverage") {
16
rustflags.extend(["-C", "instrument-coverage"]);
17
0 commit comments