about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-28 09:35:11 +0200
committerGitHub <noreply@github.com>2024-09-28 09:35:11 +0200
commit7e32221aee8c993aa0aa1a771bf96c64fa63b6a9 (patch)
tree0d4d85b4920efaa659c9dc746a351a8ff80d7b05 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2df6b0773e802b08d1c244e6d07ccb16fecdf209 (diff)
parent3b9db47f07e2b609dc2acf45b0eaa7239ef76f49 (diff)
downloadrust-7e32221aee8c993aa0aa1a771bf96c64fa63b6a9.tar.gz
rust-7e32221aee8c993aa0aa1a771bf96c64fa63b6a9.zip
Rollup merge of #130939 - obi1kenobi:patch-2, r=aDotInTheVoid
rustdoc: update `ProcMacro` docs section on helper attributes

I believe the mention of attribute macros in the section on proc macro helper attributes is erroneous. As far as I can tell, attribute macros cannot define helper attributes.

The following attribute macro is not valid (fails to build), no matter how I try to define (or skip defining) the helpers:
```rust
#[proc_macro_attribute(attributes(helper))]
pub fn attribute_helpers(_attr: TokenStream, item: TokenStream) -> TokenStream {
    item
}
```

The [language reference](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) also doesn't seem to mention attribute macro helpers. The helpers subsection is inside the section on derive macros.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions