rust-lang / rust-lang/reference

The Procedural Macros docs does not mention how to create an unsafe attribute

Open
#1,739 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-attributes Language Cleanup
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.