rustfmt
rustfmt copied to clipboard
Format Rust code
Hello guys! I've started a new project, https://github.com/sinitcin/fhe. A few files have enormous comments. Maybe this is why I've got panic. ```bash $ rustc -V rustc 1.76.0 (07dca489a 2024-02-04) $...
# Multithreaded parallelism Closes https://github.com/rust-lang/rustfmt/issues/6091 This is non-trivial because when internals can run threaded, eagerly printing cannot happen, messages have to be passed back through buffers. Even that would be...
Hi, I've been rummaging around this repo for a bit lately, getting a bit more familiar with the code by looking at some bugs. What I really like working with...
When I redirect --check output to a pager, I get a compiler panic when I exit the pager (e.g., using the 'q' command in either `more` or `less`). If I...
# Formatting incorrectly I have this code ```rust pub struct Test { one: i32, two: i32, three_three: i32, four: i32, } impl Test { pub fn new(one: i32, bbb: i32,...
A set of refactors, mostly around modules.rs to make code DRYer and simpler. Review one commit at a time and note that some commits are prep work for later commits.
Fixes #5998 ## Background (1) Comment without arrow `=>` ```rust fn main() { match a { _ => // comment with == { println!("A") } } } ``` (2) Comment...
[rustc-ice-2024-02-19T01_32_59-84679.txt](https://github.com/rust-lang/rustfmt/files/14325344/rustc-ice-2024-02-19T01_32_59-84679.txt) Sorry, not a very helpful bug report, but it said to open an issue
There has been request for this some time ago https://github.com/rust-lang/rustfmt/issues/5308 I would also like to have this option
Fixes https://github.com/rust-lang/rustfmt/issues/6052 The cause of the issue is when there's an ` = ` type assignment with the generics that overflows a line. The budget given to `def.rewrite` is too...