rust-lang / rust-lang/rustfmt

matches! macro with ranges prevent formating inside other macro

Open
#6,714 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-macros
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
2d 13h
Merged PRs (30d)
24

Description

See in this playground, there's a comment explaining the bug.
I think this bug is a bit too specific, so maybe there's a bigger one underneath.

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 linked Rust Playground and read the comment describing the failure, then reproduce the formatting interaction involving matches! and ranges. The issue names no repository file or test; done means identifying the broader underlying case and making formatting inside the other macro work without regression.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.