Skip to content

1.99 beta crater regression: expected item after attributes #162131

Closed as not planned

Description

@cyrgani

View all comments

Reduction:

//! ```
//! #[should_panic]
//! ```

Just like #162129, the bisection points to #159966. This used to compile in 1.98, but became an error in 1.99.

This was found many times in the crater run with various attributes or doc comments in the place of should_panic.

Activity

  1. added
    T-rustdoc
    regression-from-stable-to-beta
    A-doctests
    S-has-mcve
    S-has-bisection
    on Sep 1, 2026
  2. added
    needs-triage
    I-prioritize
    on Sep 1, 2026
  3. theemathas commented on Sep 3, 2026

    @theemathas
    Contributor

    For context, here are the logs of the affected crates:

  4. theemathas commented on Sep 4, 2026

    @theemathas
    Contributor

    Possibly caused by #159849. cc @petrochenkov, @JonathanBrouwer

  5. removed
    needs-triage
    on Sep 4, 2026
  6. petrochenkov commented on Sep 4, 2026

    @petrochenkov
    Contributor

    I'm not actually sure, what is supposed to parse in doc comments?
    In regular non doc comment mode lone #[should_panic] is clearly not a correct code.

  7. added
    T-lang
    I-lang-nominated
    on Sep 4, 2026
  8. 25 remaining items

  9. removed
    proposed-final-comment-period
    on Sep 23, 2026
  10. rust-rfcbot commented on Sep 23, 2026

    @rust-rfcbot
    Collaborator

    🔔 This is now entering its final comment period, as per the review above. 🔔

  11. nikomatsakis commented on Sep 23, 2026

    @nikomatsakis
    Contributor

    @rfcbot reviewed

  12. tmandry commented on Sep 23, 2026

    @tmandry
    Member

    (To clarify, this probably should have been FCP close, but we're approving letting this through in any case.)

  13. removed
    I-prioritize
    I-lang-nominated
    P-lang-drag-0
    on Sep 25, 2026
  14. added
    I-lang-radar
    on Sep 25, 2026
  15. added
    finished-final-comment-period
    S-waiting-on-review
    to-announce
    and removed
    final-comment-period
    on Oct 3, 2026
  16. removed
    to-announce
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doctestsA-parserI-lang-radarS-has-bisectionS-has-mcveS-waiting-on-reviewT-langT-rustdocdisposition-mergefinished-final-comment-periodregression-from-stable-to-beta

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions