google / rerast

A tool for transforming Rust code using rules
Apache License 2.0
712 stars 40 forks source link

Features declared in Cargo.toml can cause files to not get checked without clean #10

Open davidlattimore opened 6 years ago

davidlattimore commented 6 years ago

If a crate has a non-empty [features] section, then it seems that not all targets get checked for matches unless the user runs "cargo clean" first.

davidlattimore commented 6 years ago

This appears to be an issue with cargo (or plausibly a misunderstanding of cargo on my part). I've raised https://github.com/rust-lang/cargo/issues/5375. I could work around it by making rerast do a full cargo clean before it does a cargo check, but that feels very heavy handed and might slow down rerast quite a bit.