rust/tests/source/configs
Yacin Tmimi fe8b72d98e implement single_line_let_else_max_width
This allows users to configure the maximum length of a single line
`let-else` statements. `let-else` statements that otherwise meet the
requirements to be formatted on a single line will have their divergent
`else` block formatted over multiple lines if they exceed this length.

**Note**: `single_line_let_else_max_widt` will be introduced as a stable
configuration option.
2023-07-01 01:06:35 -05:00
..
blank_lines_lower_bound Tidy up and pass tests 2018-03-02 15:07:13 +13:00
brace_style Tidy up and pass tests 2018-03-02 15:07:13 +13:00
chain_width Add some basic tests for chain_width use 2021-04-21 21:27:50 -05:00
comment_width Tidy up and pass tests 2018-03-02 15:07:13 +13:00
condense_wildcard_suffixes Tidy up and pass tests 2018-03-02 15:07:13 +13:00
control_brace_style Tidy up and pass tests 2018-03-02 15:07:13 +13:00
disable_all_formatting Tidy up and pass tests 2018-03-02 15:07:13 +13:00
doc_comment_code_block_width Add width for codeblocks in comments (#5372) 2022-06-16 22:15:16 -05:00
empty_item_single_line Implement closing-block procedure without relying on missed_span module (#3691) 2019-07-17 23:07:12 +09:00
enum_discrim_align_threshold Change enum align semantics to care about absolute length, rather than difference. 2018-09-26 18:47:17 +00:00
error_on_line_overflow Tidy up and pass tests 2018-03-02 15:07:13 +13:00
fn_params_layout Deprecate and Rename fn_args_layout -> fn_params_layout 2022-07-12 19:33:53 -05:00
fn_single_line Tidy up and pass tests 2018-03-02 15:07:13 +13:00
force_explicit_abi Tidy up and pass tests 2018-03-02 15:07:13 +13:00
force_multiline_block Tidy up and pass tests 2018-03-02 15:07:13 +13:00
format_generated_files Support @generated marker to skip code formatting 2021-09-14 21:22:26 -05:00
format_macro_bodies Add some tests I forgot about earlier 2018-08-01 10:41:16 +12:00
format_macro_matchers Add some tests I forgot about earlier 2018-08-01 10:41:16 +12:00
format_strings Tidy up and pass tests 2018-03-02 15:07:13 +13:00
group_imports group_imports: test and document non-consecutive imports 2022-04-11 17:46:33 -05:00
hard_tabs Tidy up and pass tests 2018-03-02 15:07:13 +13:00
imports_layout Rename merge_imports to imports_granularity and add a Module option. 2021-01-17 11:48:47 -06:00
indent_style fix "internal error: left behind trailing whitespace" with long lines 2019-02-01 19:58:38 +09:00
match_arm_blocks Tidy up and pass tests 2018-03-02 15:07:13 +13:00
match_arm_leading_pipes fix: correct arm leading pipe check (#4880) 2021-07-25 22:53:32 -05:00
match_block_trailing_comma Tidy up and pass tests 2018-03-02 15:07:13 +13:00
merge_derives Tidy up and pass tests 2018-03-02 15:07:13 +13:00
normalize_comments Tidy up and pass tests 2018-03-02 15:07:13 +13:00
normalize_doc_attributes tests: add normalize_doc_attributes config tests (#3630) 2019-06-16 23:46:25 +09:00
remove_nested_parens add config test 2018-05-06 09:23:45 +08:00
reorder_impl_items Add reorder_impl_items config option 2018-04-05 12:49:16 +09:00
reorder_imports Tidy up and pass tests 2018-03-02 15:07:13 +13:00
reorder_modules Tidy up and pass tests 2018-03-02 15:07:13 +13:00
short_array_element_width_threshold Add short_item_threshold config option 2022-03-21 16:56:09 -05:00
single_line_let_else_max_width implement single_line_let_else_max_width 2023-07-01 01:06:35 -05:00
skip_children Add a test for #3493 2019-06-08 14:52:49 +09:00
space_before_colon Tidy up and pass tests 2018-03-02 15:07:13 +13:00
spaces_around_ranges backport new syntax to rustfmt 1.x (#4105) 2020-03-31 15:28:01 +09:00
struct_field_align_threshold Various cosmetic improvements (#3403) 2019-02-19 11:56:42 +09:00
struct_lit_single_line Tidy up and pass tests 2018-03-02 15:07:13 +13:00
tab_spaces Tidy up and pass tests 2018-03-02 15:07:13 +13:00
trailing_comma Tidy up and pass tests 2018-03-02 15:07:13 +13:00
type_punctuation_density Tidy up and pass tests 2018-03-02 15:07:13 +13:00
use_field_init_shorthand Update uses of rustfmt_skip to rustfmt::skip 2018-05-14 16:25:10 +12:00
use_small_heuristics implement single_line_let_else_max_width 2023-07-01 01:06:35 -05:00
use_try_shorthand Tidy up and pass tests 2018-03-02 15:07:13 +13:00
where_single_line fix tests 2018-05-31 18:34:06 +08:00
wrap_comments Tidy up and pass tests 2018-03-02 15:07:13 +13:00