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

04-testing: Added panic-abort-tests flag note to "duplicate lang item" workaround #1340

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

Fincap
Copy link
Contributor

@Fincap Fincap commented Aug 12, 2024

panic-abort-tests = true will, as described by the cargo unstable features docs, enable nightly support to compile test harness crates with -Cpanic=abort. Without this flag Cargo will compile tests, and everything they depend on, with -Cpanic=unwind because it’s the only way test-the-crate knows how to operate.

This fixed my compilation issues that were not solved by the other suggested workaround.

Copy link
Owner

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@phil-opp phil-opp merged commit e4dd739 into phil-opp:main Aug 26, 2024
3 of 4 checks passed
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