Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiletest: clean rmeta data (from "cargo check") before running compiletest #3380

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

matthiaskrgr
Copy link
Member

@matthiaskrgr matthiaskrgr commented Oct 29, 2018

Fixes #2896
Fixes #2139

@@ -75,7 +75,10 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
}

fn run_mode(mode: &str, dir: PathBuf) {
compiletest::run_tests(&config(mode, dir));
let cfg = config(mode,dir);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: whitespace after ,

@phansch
Copy link
Member

phansch commented Oct 29, 2018

I think this also fixes #2139?

@matthiaskrgr
Copy link
Member Author

Yup, looks like it.

@phansch
Copy link
Member

phansch commented Oct 29, 2018

Nice, that should make using RLS and Clippy together a much better experience 🎆 🎇 ✨

@phansch
Copy link
Member

phansch commented Oct 29, 2018

bors r+

bors bot added a commit that referenced this pull request Oct 29, 2018
3380: compiletest: clean rmeta data (from "cargo check") before running compiletest r=phansch a=matthiaskrgr

Fixes #2896
Fixes #2139

Co-authored-by: Matthias Krüger <matthias.krueger@famsik.de>
@bors
Copy link
Contributor

bors bot commented Oct 29, 2018

@bors bors bot merged commit be7656d into rust-lang:master Oct 29, 2018
bors added a commit that referenced this pull request May 19, 2019
Fix compile-test from forcing a rebuild.

If the `compile-test` test was run, then running a cargo build command immediately after caused everything to be rebuilt. This is because the `compile-test` test was deleting all `.rmeta` files in the target directory. Cargo recently switched to always generating `.rmeta` files (rust-lang/cargo#6883), and when the files are deleted, it thinks it needs to be rebuilt.

I am not very familiar with compiletest or clippy, so please take a close look and test this out (with the most recent nightly). In particular, make sure it doesn't revert the fixes from #3380 (it seems to work for me). Also @oli-obk mentioned something related in rust-lang/rust#60190 (comment), and I want to make sure that is addressed as well.

Fixes #4114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants