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 ee5def9 commit c3aa699Copy full SHA for c3aa699
prusti/src/driver.rs
@@ -125,8 +125,8 @@ fn main() {
125
126
// If the environment asks us to actually be rustc, then do that.
127
// If cargo is compiling a dependency, then be rustc.
128
- let prusti_be_rustc = config::be_rustc()
129
- || arg_value(&rustc_args, "--cap-lints", |val| val == "allow").is_some();
+ let in_primary_package = env::var("CARGO_PRIMARY_PACKAGE").is_ok();
+ let prusti_be_rustc = config::be_rustc() || !in_primary_package;
130
if prusti_be_rustc {
131
rustc_driver::main();
132
}
0 commit comments