Skip to content

fix: Fix proc macros TokenStream::from_str() for doc comments#22735

Open
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:proc-macro-doc-comment
Open

fix: Fix proc macros TokenStream::from_str() for doc comments#22735
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:proc-macro-doc-comment

Conversation

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

We should strip /// (or //! or /** or /*!), which is 3 characters, not 2.

Fixes #22731.

We should strip `///` (or `//!` or `/**` or `/*!`), which is 3 characters, not 2.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

2 participants