-
Notifications
You must be signed in to change notification settings - Fork 13k
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
nightly: unexpected "could not parse code block" in indented block docs in presence of backticks #58473
Comments
You should see backticks in rendered docs. However, the issue is on your side. You have to add a backslash before them. :) Try this out and tell us if it's still an issue. |
Wait, what? I don't get your reply at all. In case you missed it, I'm not complaining about how docstring is rendered, I only added screenshot to show that not all parts of rustdoc try to see markdown-indented-code-blocks where there are none; the issue is with the warning that makes no sense. |
I get these warnings when compiling the
I very much doubt that this is intended. Warning occurs with: No warnings with rustc 1.33.0-nightly (0c0c585 2019-01-19). So the problem is in these commits. Thus, the PR causing these warnings is probably #56884. CC @euclio |
Yeah, the pass to check codeblock syntax is probably missing handling for the extra margin introduced by comments in that style. Shouldn't be too hard to fix. In the meantime, you can work around this by writing your comments with
|
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
…isdreavus rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes rust-lang#58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
I believe this is a minimal example. Warning disappears if either:
///
-style formatting is used(straight from rustup)
The text was updated successfully, but these errors were encountered: