Closed
Description
expected one of
!
,.
,::
,;
,?
,{
,}
, or an operator, foundis
./reg/google-games1/1.0.10+20190627/beta-2019-08-13.txt:[INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `is`
Minimized reproduction, run with rustdoc --test
(all the whitespace is important!):
/// #
///
/// ident ident
fn f() {}
Apparently something makes this comment look like code to rustdoc
, so it tries to doctest it.
Actually, stable rustdoc also gives an error for this, from what I tried locally, not sure why it passed on crater.
cc @rust-lang/rustdoc
@shepmaster explains what happens in #63628 (comment).
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
GuillaumeGomez commentedon Aug 30, 2019
It's not a bug, it's markdown, litterally. Like @shepmaster wrote, it's considered as a code block.
Aloso commentedon Aug 31, 2019
@GuillaumeGomez it's a code block, but it's not a doctest, it might not even be Rust syntax.
Doctests can only be written with the
syntax.
GuillaumeGomez commentedon Sep 2, 2019
No:
Running with
rustdoc --test
, I had two tests.Mark-Simulacrum commentedon Sep 19, 2019
Closing as won't fix / expected breakage.