-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
False doc_markdown warnings #1469
Comments
I wasn't even aware that's possible. That's amazing... |
Yeah, I had to learn about how to do it correctly in the first place 😄. Definitely an edge case. |
This is such a hack, I hesitate between 😄 and 😱. |
I think this is a niche enough use case that clippy shouldn't attempt to handle it. idk. Ultimately, the way clippy is supposed to be used is with a liberal sprinkling of allows. |
I'd be fine putting an If I put Edit: Actually for my use case it's at the crate level so I that's where I'm stuck. If it was just a module I could apply a |
I ran into the same issue at the crate level and I'm hesitant to add |
When I use
cfg_attr
for conditional examples in doc comments like this:I receive false warnings:
The text was updated successfully, but these errors were encountered: