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 a6fc23b commit 0b1697aCopy full SHA for 0b1697a
src/rustflags.rs
@@ -1,3 +1,5 @@
1
+use std::env;
2
+
3
const IGNORED_LINTS: &[&str] = &["dead_code"];
4
5
pub(crate) fn toml() -> toml::Value {
@@ -8,10 +10,10 @@ pub(crate) fn toml() -> toml::Value {
8
10
rustflags.push(lint);
9
11
}
12
- if let Ok(flags) = std::env::var("RUSTFLAGS") {
13
+ if let Some(flags) = env::var_os("RUSTFLAGS") {
14
// TODO: could parse this properly and allowlist or blocklist certain
15
// flags. This is good enough to at least support cargo-llvm-cov.
- if flags.contains("-C instrument-coverage") {
16
+ if flags.to_string_lossy().contains("-C instrument-coverage") {
17
rustflags.extend(["-C", "instrument-coverage"]);
18
19
0 commit comments