about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-11 01:02:38 -0500
committerGitHub <noreply@github.com>2025-02-11 01:02:38 -0500
commita6052058cdc5720379c4eaea258ca94abb34c4ae (patch)
tree688c7ed0eaf8aa5387e611cff8150a395b3643a4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentffa9afef183a3496a277c8da2e61403582a99508 (diff)
parent593c88fc49d2fa3ceabaa12923d8540551617041 (diff)
downloadrust-a6052058cdc5720379c4eaea258ca94abb34c4ae.tar.gz
rust-a6052058cdc5720379c4eaea258ca94abb34c4ae.zip
Rollup merge of #136606 - thaliaarchi:format-long-lines, r=ibraheemdev
Fix long lines which rustfmt fails to format

rustfmt fails to format this match expression, because it has several long string literals over the maximum line width. This seems to exhibit rustfmt issues [#3863](https://github.com/rust-lang/rustfmt/issues/3863) (Gives up on chains if any line is too long) and [#3156](https://github.com/rust-lang/rustfmt/issues/3156) (Fail to format match arm when other arm has long line).

Format it with a large line width (e.g., by setting `max_width = 200` in rustfmt.toml) and, in case the rustfmt bugs are later fixed, mark it with `#[rustfmt::skip]`, as it is more legible with each case on one line.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions