rustfmt
rustfmt copied to clipboard
Format Rust code
Fixes the bug, see https://github.com/rust-lang/rust/issues/125242#issuecomment-2119377808
## Repro steps 1. Add the following inputs to `tests/source/5131_module.rs`. 2. Execute `cargo test test::system_tests` and get output. ### case 1. correct Input: ``` use foo::{ Foo, bar::Bar, }; ```...
Tracked by https://github.com/rust-lang/rustfmt/issues/6206 ## Description - [ ] SegmentParam - [ ] ast::AssocConstraint - will work on further pr with `rewrite_generic_args` - [x] ast::AssocConstraintKind - [ ] ast::WherePredicate - will...
TLDR: Added repo cloning to check-diff. Included sample execution as screenshot. This PR adds git functionalities to the `check-diff` crate. The current script has a `init_submodules` function. However, it seems...
Tracked by #6206 ## Description - added `RewriteError` and blanket implementation for `rewrite_result` - above 6 ast nodes that implements rewrite, replaced rewrite function body with `rewrite_result` for 4 nodes;...
This issue tracks the necessary tasks to implement `rewrite_result` for all the nodes that have`rewrite` implementation. ## Background Current `rewrite` method returns Option, which means that it gives None without...
Fixes #4471 and #5138 I now see that there have been several efforts to fix these (#4524 and #5483), but this takes a pretty different approach. I'm submitting this because...
Fixes #4613 Replacing [dirs](https://github.com/dirs-dev/dirs-rs) with [etcetera](https://github.com/lunacookies/etcetera) adds support for checking XDG_CONFIG_HOME on macOS when looking for a configuration file. I'm new to Rust, so let me know if I'm missing...
``` % rustfmt --version rustfmt 1.7.1-nightly (fda509e 2024-06-25) ``` Content of `src/main.rs`: ```rust /* 0 1 2 3 4 5 6 7 8 9 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 */ fn main() { //...