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
1.0.8 broke my error()
derive
#53
Comments
Just bisected locally and this first broke in |
jyn514
added a commit
to jyn514/saltwater
that referenced
this issue
Dec 4, 2019
lock in a lower version of `thiserror` until dtolnay/thiserror#53 is fixed
Sorry about the breakage! This was a bug in one of the changes in 1.0.7. I released 1.0.9 with a fix. |
1.0.9 works great! Thanks so much for the quick fix :) |
jyn514
added a commit
to jyn514/saltwater
that referenced
this issue
Dec 4, 2019
thanks again to dtolnay for the quick fix :) See dtolnay/thiserror#53 for context
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just upgraded from 1.0.4 to 1.0.8 and it broke my build. The following used to compile fine with thiserror:
With 1.0.8, I now get an error:
Is this intentional? If so, why? I don't need to print
.0
to print the error message.Some more things I tried:
#[error("{}", 0.data)]
#[error("{}", &0.data)]
#[error("{}", (.0).data)]
:expected reference, found struct 'std::string::String'
#[error("{}", (&.0.data))]
-error: float literals must have an integer part
#[error("{}", (&self.0.data))]
- works but gives warning about unneccessary parentheses#[error("{}", &self.0.data)]
-error: proc-macro derive produced unparseable tokens
The text was updated successfully, but these errors were encountered: