Expand necessary builtin macros eagerly

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, rust
Domain
compilers

Research direction

Start with rust-macro-builtins.cc and review the linked or referenced issues for the unchecked builtins. Determine the handler changes needed for each remaining macro to return a fragment containing its unexpanded macro expansion. The issue is complete when the remaining unchecked macros in the list support eager expansion.

Written by the indexing model from the issue text.

Description

enhancement

The following list of macros is allowed to expand eagerly as of Rust 1.49. In our current implementation, this will mean tweaking that builtin's handler in rust-macro-builtins.cc in order to return a new fragment containing the unexpanded macro expansion. The list is as follows:

  • Implement eager expansion for concat!()
  • #1794
  • #1795
  • #1806
  • #1796
  • #1797
  • #1798
  • #1804
  • #1805
  • #1865

I'll create associated issues for each of these tasks.

Dominant language
C++
Stars
2.9k
Forks
231
Avg merge
20h 2m
Merged PRs (30d)
66

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.

More from Rust-GCC/gccrs

All issues in Rust-GCC/gccrs

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.