-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo test then cargo tarpaulin causes BorrowMut error and linking failure #9220
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
Comments
Further comment from the person who raised this with me in tarpaulin initially:
|
Oh also my cargo version is |
I think this should be fixed in #9229 |
Awesome can't wait to try it out 👍 |
Fix a `BorrowMut` error when stdout is closed There was one location in the job queue where the shell is borrowed twice by accident, so instead hold the same borrow over both locations. Closes #9220
rust-lang/cargo#9220 Signed-off-by: Ralf Anton Beier <[email protected]>
So when running cargo test with default rust flags and then running cargo tarpaulin (version 0.18.0-alpha1) cargo can output the following error (it's called within tarpaulin)
To recreate the error given an example project (https://github.com/Smithay/calloop) we do the following:
One salient note cargo tarpaulin changes the rust flags to
RUSTFLAGS=" -C link-dead-code -C debuginfo=2 --cfg=tarpaulin "
so I wonder if this is a case of incremental compilation going wrong?The text was updated successfully, but these errors were encountered: