We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is presumably somewhat a bug in Rust itself. I just need to make a MRE and evaluate it.
Identified due to #561.
The text was updated successfully, but these errors were encountered:
rust-lang/rust#102238 (comment) for my comment on the relevant issue.
Sorry, something went wrong.
#[must_use] trait X {} fn y<Z: X>(z: Z) -> Z { z } fn a<Z: X>(z: Z) { y(z); } #[must_use] struct A; impl X for A {} fn main() { a(A); }
for the MRE.
We can wrap the DbTxn generic in a struct which is must_use to workaround this. It's ugly but would be safe.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=82ba3d8b66d59ac5a9faa415032775e3
must_use only requires use on a branch, not on all branches :///
No branches or pull requests
This is presumably somewhat a bug in Rust itself. I just need to make a MRE and evaluate it.
Identified due to #561.
The text was updated successfully, but these errors were encountered: