Skip to content

Macros bypass other feature gates #12122

Closed
@brson

Description

@brson

This uses the log_syntax! macro without the log_syntax feature gate:

#[feature(macro_rules)];
// This should be required
// #[feature(log_syntax)];

macro_rules! hey ( () => { log_syntax!() } )

fn main() {
    hey!()                                                                                         
}

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsP-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions