Builtin macros
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 20h 2m
- Merged PRs (30d)
- 66
Description
Bang macros
- asm #1566
- assert #1998
- cfg
- column #1004
- compile_error
- concat_bytes
- concat_idents
- concat
- env
- file
- format_args_nl
- format_args
- const_format_args
- global_asm
- include_bytes
- include_str
- include
- line #989
- log_syntax
- module_path
- option_env
- core_panic
- std_panic
- unreachable
- stringify
- trace_macros
Attribute macros
- bench
- cfg_accessible
- cfg_eval
- derive
- global_allocator
- test
- test_case
Derive macros
- #2996
- #2995
- #2994
- #2993
- #2992
- #2991
- #2990
- #2989
- #2988
- RustcDecodable
- RustcEncodable
Directly taken from https://github.com/rust-lang/rust/blob/a240ccd81c74c105b6f5fe84c46f8d36edb7e306/compiler/rustc_builtin_macros/src/lib.rs#L52-L119
Thanks a lot to @bjorn3 for the corrections
Builtin macros which are declared and/or used in libcore 1.49:
- format_args
- format_args_nl
- RustcDecodable
- RustcEncodable
- cfg_accessible
- global_allocator
- test
- test_case
- bench
- option_env
- concat_idents
- module_path
- asm
- llvm_asm
- global_asm
- log_syntax
- trace_macros
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 builtin macro declarations listed in rustc_builtin_macros/src/lib.rs at the referenced Rust revision, then compare them with the checked and unchecked entries in this issue. Identify the relevant gccrs compiler entry points for one missing macro and confirm its behavior against the Rust 1.49 libcore list; done means the selected macro is supported and its checklist entry can be updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100