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

Let the "strict_asserts" feature enable Token::root assertions. #4258

Merged

Conversation

jimblandy
Copy link
Member

@jimblandy jimblandy commented Oct 18, 2023

Perform run-time checks that only one root Token exists per thread when the "strict_asserts" feature is enabled, not only in debug builds.

Checklist

  • Run cargo clippy.
  • Run cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@jimblandy jimblandy requested a review from a team as a code owner October 18, 2023 01:01
Perform run-time checks that only one root `Token` exists per thread
when the `"strict_asserts"` feature is enabled, not only in debug
builds.
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Not terribly happy about the extra cfg, but not sure of a way around it.

@cwfitzgerald cwfitzgerald merged commit da0b3fe into gfx-rs:trunk Oct 18, 2023
23 checks passed
@jimblandy jimblandy deleted the token-assertions-strict-asserts branch December 13, 2023 16:36
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