Skip to content

syntax::parse::attr implementation disagrees with BNF in manual #13825

Closed
@dcrewi

Description

@dcrewi

According to the manual, multiple comma-separated attributes may be specified within a single pair of square brackets. The parser does not do this at present (02ba8e2). Which one is correct?

Use case:

#[inline, cfg(target_word_size = "32")]
fn assert_fits_in_machine_word() {/*...*/}
#[inline, cfg(target_word_size = "64")]
fn assert_fits_in_machine_word() {/*...*/}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTP-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions