-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Maybe incorrect parsing of doc tests #99041
Comments
I think this is expected behavior. The line There are several issues about this, such as #63193 for adding a control over that, #64162 for distinguishing indented code blocks differently, and #88590 for providing better error messages. (and #59867) |
Are there any ways to ignore all the doc tests in a mod? Like |
Sorry, I don't know of any workarounds other than disabling comments in bindgen or blocklisting the offending items. |
Sigh. I think I'd better manully edit the generated code to pass the tests. |
You can wrap it into a code block like this:
Since it's not a bug, closing this issue. |
Here is a fragment from some bindgen-generated code:
Playground.
I expected to see this happen: when running
cargo test
, there is no tests to execute.Instead, this happened:
Acutally, it is caused by this line,
If removing it, then there is no doc tests.
It happens on both stable version and nightly version.
The text was updated successfully, but these errors were encountered: