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

Allow auxcov to be used by consumers that also use auxtools #72

Merged
merged 1 commit into from
May 22, 2023

Conversation

Cyberboss
Copy link
Contributor

No description provided.

@@ -100,3 +102,5 @@ fn stop_code_coverage(coverage_file: Value) {

result
}

pub fn anti_dce_stub() {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I spent all night trying to figure out why it wasn't working and it turns out the entire crate was getting DCE'd.

This function needs to be called by the consumer to prevent that.

I have 0 clue why this is, it must be a bug in inventory.

Cyberboss added a commit to Cyberboss/auxlua that referenced this pull request May 21, 2023
Call `anti_dce_stub()` in auxcov to prevent it from being eliminated entirely.

`cargo update` pending willox/auxtools#72
@willox willox merged commit efcedd3 into willox:master May 22, 2023
@Cyberboss Cyberboss deleted the ExportToolsFromCov branch May 22, 2023 16:40
Y0SH1M4S73R pushed a commit to tgstation/auxlua that referenced this pull request May 22, 2023
* Fix the "coverage" feature.

Call `anti_dce_stub()` in auxcov to prevent it from being eliminated entirely.

`cargo update` pending willox/auxtools#72

* `cargo update`
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.

2 participants