Skip to content

[1.38] Regression: expected one of !, ., ::, ;, ?, {, }, or an operator, found is #63890

@petrochenkov

Description

@petrochenkov

#63628 (comment)

expected one of !, ., ::, ;, ?, {, }, or an operator, found is

./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

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions