-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: Failed to parse rust code block with ## in 2024 #136899
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-edition-2024
Area: The 2024 edition
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
So, an "isolated" The sequence |
Checking what's wrong. |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 12, 2025
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 12, 2025
I opened #136927 to fix it. |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 12, 2025
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 12, 2025
jhpratt
added a commit
to jhpratt/rust
that referenced
this issue
Feb 13, 2025
…-escape, r=notriddle Correctly escape hashtags when running `invalid_rust_codeblocks` lint Fixes rust-lang#136899. We forgot to use `map_line` when we wrote this lint. r? `@notriddle`
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 13, 2025
Rollup merge of rust-lang#136927 - GuillaumeGomez:add-missing-hashtag-escape, r=notriddle Correctly escape hashtags when running `invalid_rust_codeblocks` lint Fixes rust-lang#136899. We forgot to use `map_line` when we wrote this lint. r? ``@notriddle``
ehuss
added a commit
to ehuss/rust
that referenced
this issue
Feb 13, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
ehuss
added a commit
to ehuss/rust
that referenced
this issue
Feb 13, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
ehuss
added a commit
to ehuss/rust
that referenced
this issue
Feb 13, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
Shourya742
pushed a commit
to Shourya742/rust
that referenced
this issue
Feb 15, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Feb 22, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to carolynzech/rust
that referenced
this issue
Feb 22, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this issue
Feb 22, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this issue
Feb 22, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this issue
Mar 3, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this issue
Mar 4, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this issue
Mar 6, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to thanhnguyen-aws/verify-rust-std
that referenced
this issue
Mar 6, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this issue
Mar 11, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to tautschnig/verify-rust-std
that referenced
this issue
Mar 11, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Mar 11, 2025
A small workaround for rust-lang#136899, rustdoc's invalid_rust_codeblocks was not handling this well in 2024. This may be needed when migrating to 2024 when building with stage0.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-edition-2024
Area: The 2024 edition
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In 2024, rustdoc seems to fail to parse a rust code line that starts with
##
.In 2021, this renders in a weird way where it strips the first
#
, but doesn't actually hide the line. I would expect the line to be hidden. I don't know if that is intentional.In 2024,
cargo doc
generates a warning:I'm not sure what I expect here. I assume it is conflicting with the reserved syntax of 2024.
Is the
##
form really intended to be supported as a way to hide a line? cc @GuillaumeGomezMeta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: