rust-lang / rust-lang/reference
The Procedural Macros docs does not mention how to create an unsafe attribute
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 607
- PR merge metrics
- PR metrics pending
Description
I'm migrating my code to 2024 edition and one of my proc_macro_attribute generate an unsafe attribute. I do like to make my attribute unsafe but can't find any information how to do this in https://doc.rust-lang.org/reference/procedural-macros.html.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Procedural Macros section at the linked Rust Reference page and locate the source for that documentation. Determine what guidance is missing for creating an unsafe attribute during the 2024 edition migration, then update the section so the procedure is clear and verify the rendered documentation explains it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100