-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Use -Clink-dead-code #26
Conversation
bors r+ |
Build succeeded: |
FYI @richkadel If this is not the intended behavior. |
I don't think In fact, that option is known to break the coverage workflow in some cases (particularly on MSVC/Windows builds). Why, what makes you think it is operating differently without that option? |
Ah, I just reviewed your updated test. Correct me if I'm wrong. It looks like you are adding That should be filed as an issue against I would advise against adding Thoughts? |
Thanks for your advice! I opened rust-lang/rust#86177 to report this problem. And for |
28: Revert "Use -Clink-dead-code" r=taiki-e a=taiki-e This reverts commit 40fdbd8. > Due to a bug of `-Zinstrument-coverage`, some files may be ignored. There is a known workaround for this issue, but note that the workaround is likely to cause another problem. See rust-lang/rust#86177 and #26 for more. Co-authored-by: Taiki Endo <[email protected]>
125: Update coverage output in test to nightly-2022-01-15 r=taiki-e a=taiki-e rust-lang/rust#86177 (#21, #26) has been fixed 🎉 Co-authored-by: Taiki Endo <[email protected]>
NOTE: this PR has been reverted. see #26 (comment) for more.
Fixes #21
The unstable book says that unused functions are also instrumented, but it seems that -Clink-dead-code is also needed.
https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/instrument-coverage.html#-z-instrument-coverageoptions