Feature gate: #![feature(diagnostic_namespace)]
This is a tracking issue for RFC 3368, which introduces a #[diagnostic] attribute namespace for attributes that affect the compiler diagnostics. Using an unknown attribute in this attribute namespace should only result in a warning.
Public API
#[diagnostic::something] // generates a lint warning.
pub struct Magic;
Steps / History
Unresolved Questions
- None yet. (All unresolved questions in the RFC are related to the design of the
#[diagnostic::on_unimplemented] attribute, which likely will use a different feature)
Feature gate:
#![feature(diagnostic_namespace)]This is a tracking issue for RFC 3368, which introduces a
#[diagnostic]attribute namespace for attributes that affect the compiler diagnostics. Using an unknown attribute in this attribute namespace should only result in a warning.Public API
Steps / History
#[diagnostic]namespace and#[diagnostic::on_unimplemented]attribute #119888 (comment)#[diagnostic]namespace and#[diagnostic::on_unimplemented]attribute #119888Unresolved Questions
#[diagnostic::on_unimplemented]attribute, which likely will use a different feature)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩