Skip to content

able to invoke unstable macro 2.0 #34079

@durka

Description

@durka

Stability checking for macro_rules! was fixed in #48524, but uses of declarative macros 2.0 (macro items) are still not checked for stability.

ORIGINAL ISSUE:

Why does this compile?

fn main() {
    __thread_local_inner!(i32, 42);
}

__thread_local_inner is marked #[unstable(...)] #[allow_internal_unstable].

Metadata

Metadata

Assignees

Labels

A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions