You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust-lang/rust#84445 changed rustdoc's handling of lines that begin with # not followed by whitespace. Previously the doc code compiled and rendered correctly as written, since the line #( was nothing special to rustdoc. After that PR, the doc code renders incorrectly:
seq!(N in 64..=127{
#[derive(Debug)]enumDemo{// Expands to Variant64, Variant65, ...Variant#N,)*}});
and fails to compile, since rustdoc is trimming the #( into a hidden line containing only (:
---- src/lib.rs - (line 44) stdout ----error: expected identifier, found `(` --> src/lib.rs:51:1 |9 | / (10 | | Variant#N,11 | | )* | |_________^ expected identifiererror[E0433]: failed to resolve: use of undeclared type `Demo` --> src/lib.rs:58:45 |16 | assert_eq!("Variant99", format!("{:?}", Demo::Variant99)); | ^^^^ use of undeclared type `Demo`
The text was updated successfully, but these errors were encountered:
Specifically this test:
seq-macro/src/lib.rs
Lines 44 to 60 in b9d1fd4
rust-lang/rust#84445 changed rustdoc's handling of lines that begin with
#
not followed by whitespace. Previously the doc code compiled and rendered correctly as written, since the line#(
was nothing special to rustdoc. After that PR, the doc code renders incorrectly:and fails to compile, since rustdoc is trimming the
#(
into a hidden line containing only(
:The text was updated successfully, but these errors were encountered: