diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-19 14:56:46 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-19 19:42:19 +1100 |
| commit | 5bb37ce76409f2e2b03d7b7b44b6fd129ea7b02d (patch) | |
| tree | cfd78130d99df1a11cc5cafd35347ca637656ed2 /compiler/rustc_codegen_llvm/src | |
| parent | 311e8d3e5dbcd0db9ca478f18ed0f8324a5e750e (diff) | |
| download | rust-5bb37ce76409f2e2b03d7b7b44b6fd129ea7b02d.tar.gz rust-5bb37ce76409f2e2b03d7b7b44b6fd129ea7b02d.zip | |
Improve formatting within `make_mir_visitor` macro body.
rustfmt doesn't touch it because it's a macro body, but it's large enough that the misformatting is annoying. This commit improves it. The most common problems fixed: - Unnecessary multi-line patterns reduced to one line. - Multi-line function headers adjusted so the parameter indentation doesn't depend on the length of the function name. (This is Rust code, not C.) - `|` used at the start of lines, not the end. - More consistent formatting of empty function bodies. - Overly long lines are broken.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
