about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-28 14:18:29 +0000
committerbors <bors@rust-lang.org>2023-07-28 14:18:29 +0000
commit317ec04d18ab9c5d09a4d9b4418a12da8974b961 (patch)
treef90abfe14be85d17860f531c314fa184afc57ebf /compiler/rustc_parse/src
parentb95fd857fe464e7dcb87b159e1f96c30709c236e (diff)
parent5b576665e50752b89e96e5d3043b99a9558e881c (diff)
downloadrust-317ec04d18ab9c5d09a4d9b4418a12da8974b961.tar.gz
rust-317ec04d18ab9c5d09a4d9b4418a12da8974b961.zip
Auto merge of #111780 - weiznich:diagnostic_namespace, r=petrochenkov
Diagnostic namespace

This PR implements the basic infrastructure for accepting the `#[diagnostic]` attribute tool namespace as specified in https://github.com/rust-lang/rfcs/pull/3368. Note: This RFC is not merged yet, but it seems like it will be accepted soon. I open this PR early on to get feedback on the actual implementation as soon as possible. This hopefully enables getting at least the diagnostic namespace to stable rust "soon", so that crates do not need to bump their MSRV if we stabilize actual attributes in this namespace.

 This PR only adds infrastructure accept attributes from this namespace, it does not add any specific attribute. Therefore the compiler will emit a lint warning for each attribute that's actually used. This namespace is added behind a feature flag, so it will be only available on a nightly compiler for now.

cc `@estebank` as they've supported me in planing, specifying and implementing this feature.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions