-
`Shape` is one of the key abstractions in Rustfmt, representing the space into which an AST node can be written. Unfortunately it is a mess - the structure is weird, the fields are badly named, and th…
-
**Description**
Set up a CI/CD pipeline for the project using the [tailcallhq GitHub Workflow template](https://github.com/tailcallhq/gh-workflow). Ensure automated testing, linting.
**Tasks** …
-
The following snippet is formatted using rustfmt.
```rust
match Some(1) {
Some(number) => (
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
number,
)
.t…
-
When I format the following code using `rustfmt src/cmds.rs` (with rustfmt 1.5.2-stable (8ede3aa 2023-07-12)) I get invalid code.
**Original valid code:**
```rust
impl SwayrCommand {
fn is_s…
-
@PsichiX I was curious what you thought about using the builder-style widgets for the guide on the website. @temporalflux ran into some issues understanding the `widget!` macro along with the desire …
-
Hello bors team!
Thanks for this awesome tool!
We have an issue with bors refusing to merge our PRs despite all the PR checks are validated.
We have a CI running to check a label has been put…
-
If the `if let` of `if` line length is near `max_width`, then the [`control_brace_style`](https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#control_brace_style) option of `rustfmt` pushes t…
-
Code blocks in a `//!` doc comment don't seem to be formatted.
```rust
mod foo {
//! ```
//! horribly .formatted(code
//! );
//! ```
}
```
This is on nightly 2022-07-19 and on an …
-
Given the following code:
```
impl IndexRanges for T
where
T: Index
+ Index
+ Index
+ Index
+ Index
+ Index,
{
}
```
rustfmt moves the `whe…
-
Code:
```rust
macro_rules! test {
($l:literal) => {};
}
fn main() {
test!{
"
"};
}
```
expected output:
```rust
macro_rules! test {
($l:literal) => {};
}
fn mai…