Yacin Tmimi
Yacin Tmimi
Closes #5463 The `annotate_snippets` crate adds line number and column info to the output, so we don't need to append the line number to the `origin` we pass to `annotate_snippets::snippet::Snippet`....
Fixes #2055 Now when using `version::Two`, rustfmt will permit comments within trait bounds and actually reformat them instead of refusing to rewrite the entire trait definition because there are comments...
Fixes #5995 Added support for rewriting generics on const items.
Fixes #5623 When formatting code snippets in doc comments, we start by wrapping the content of the code block in an `fn main(){}` and add indentation. We do this because...
## Background RFC "Style Evolution" (https://github.com/rust-lang/rfcs/pull/3338). Upstream tracking issue: https://github.com/rust-lang/rust/issues/105336 ## Requirements For The New `style_edition` config After reading through the RFC these are the key requirements I found: *...
r? @calebcartwright Here's an example of what the [automated subtree-push PR looks like](https://github.com/ytmimi/rustfmt/pull/6), and Here's a link to the [GitHub Actions logs](https://github.com/ytmimi/rustfmt/actions/runs/7597171114/job/20691700565). I want to note that PRs are still...
Bumping the toolchain version as part of a git subtree push current toolchain (nightly-2023-12-28): - 1.77.0-nightly (89e2160c4 2023-12-27) latest toolchain (nightly-2024-04-08): - 1.79.0-nightly (9d5cdf75a 2024-04-07) r? @calebcartwright
This PR is a follow up to https://github.com/rust-lang/rustfmt/pull/5933, ~~but currently includes all the changes from that PR since it hasn't been merged yet~~. This PR makes internal changes to define...
Closes #2036 This would be a first step to resolving #5782, though this PR doesn't change anything about how rustfmt currently rewrite doc comments. Assuming this is a worthwhile change...