Skip to content

Conversation

nnethercote
Copy link

This is more idiomatic Rust, and doesn't allow the creation of invalid ComparisonPairs.

This is more idiomatic Rust, and doesn't allow the creation of invalid
`ComparisonPair`s.
@nnethercote
Copy link
Author

I filed this PR because try_new was highlighted as an example of a smart constructor that prevents invalid states in https://rust-gpu.github.io/blog/2025/07/25/rust-on-every-gpu.

@LegNeato
Copy link
Owner

LegNeato commented Aug 8, 2025

Yeah, I think I hit a codegen bug and it wasn't working, let's see how CI goes!

@nnethercote
Copy link
Author

Something odd is going on, for sure.

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