Skip to content

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

Merged
cwfitzgerald merged 1 commit intogfx-rs:trunkfrom
jimblandy:token-assertions-strict-asserts
Oct 18, 2023
Merged

Let the "strict_asserts" feature enable Token::root assertions.#4258
cwfitzgerald merged 1 commit intogfx-rs:trunkfrom
jimblandy:token-assertions-strict-asserts

Conversation

@jimblandy
Copy link
Copy Markdown
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
Copy Markdown
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
@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