Skip to content

#[stable], #[unstable], #[deprecated] are not errors when used non-#[staged_api] crates #22830

Closed
@huonw

Description

@huonw

They are ignored, but silently. It is probably better if we make them errors to give us room to build some future system with those nice names.

This compiles without a peep from rustc:

#![allow(dead_code)]

#[stable]
fn foo() {}
#[deprecated] 
struct Bar;
#[unstable]
type X = i8;

fn main() {}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions