comments within parameter list not idempotent
Open
Nobody has claimed this yet.
1x-backport:pending
A-comments
C-bug
I-non-idempotency
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 24
Description
"not idempotent". Does does that make it aliumpotent?
Input
type T = Result<
u32 // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
// diam ac cursus. Aliquam condimentum in erat quis pretium.
// accumsan urna. Cras volutpat sit amet quam.
,
bool,
>;
Output (first run)
type T = Result<
u32, // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
// diam ac cursus. Aliquam condimentum in erat quis pretium.
// accumsan urna. Cras volutpat sit amet quam.
bool,
>;
Output (second run)
type T = Result<
u32, // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
// diam ac cursus. Aliquam condimentum in erat quis pretium.
// accumsan urna. Cras volutpat sit amet quam.
bool,
>;
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 by running rustfmt twice on the provided Rust input and comparing the output. Trace the formatting path for comments within the generic parameter list; done means the second formatting pass produces the same output as the first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100