-
Notifications
You must be signed in to change notification settings - Fork 68
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
Give access to a Flag Span #242
Comments
We could expose an inherent method for this - previously, it was exposed via the If we did this, I wouldn't have it borrow the span - I'd do: impl Flag {
pub fn span(&self) -> Span {
self.0.copied().unwrap_or_else(Span::call_site)
}
} |
I ran into the similar issue. Err(Error::custom("Cannot set flag_a and flag_b").with_span(self.flag_b))
|
Oh I wasn't aware |
@greyblake without the linked
However, my preference would be that dtolnay/syn#1441 get fixed, so I can simply re-add the |
@TedDriggs Thank you for the update! To be honest I am a bit confused what word "sealed" means exactly in this context. For now I've switched to |
Here's an explanation of what "sealed" means. |
Sometimes flags are incompatible with others and you'd like to refer to the span of one in the error.
For that purpose it would be useful to get the span at the same time.
The text was updated successfully, but these errors were encountered: