diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-08 03:30:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-08 03:30:54 +0200 |
| commit | 42cdc7df2088d06ce76d3aa84780e25aff1993d8 (patch) | |
| tree | febdf4aeecfa77ed07ddafa5e2c7f01ba0d252d9 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 328e9785fbe9f5a0cfebfac644c4e02dcb00051c (diff) | |
| parent | bdf4e3de9c4634af517c05c58f049eda0c28ea5f (diff) | |
| download | rust-42cdc7df2088d06ce76d3aa84780e25aff1993d8.tar.gz rust-42cdc7df2088d06ce76d3aa84780e25aff1993d8.zip | |
Rollup merge of #114413 - CohenArthur:warn-macro-export-decl-macros, r=cjgillot
Warn when #[macro_export] is applied on decl macros The existing code checks if `#[macro_export]` is being applied to an item other than a macro, and warns in that case, but fails to take into account macros 2.0/decl macros, despite the attribute having no effect on these macros. This PR adds a special case for decl macros with the aforementioned attribute, so that the warning is a bit more precise. Instead of just saying "this attribute has no effect", hint towards the fact that decl macros get exported and resolved like regular items. It also removes a `#[macro_export]` attribute which was applied on one of `core`'s decl macros. - core: Remove #[macro_export] from `debug_assert_matches` - check_attrs: Warn when #[macro_export] is used on macros 2.0
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions
