Add source/target tests for each config option

This commit is contained in:
Vincent Esche 2017-04-30 23:49:39 +02:00
parent b4833a8c58
commit 16b91be3e6
236 changed files with 2166 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// rustfmt-array_layout: Block
// Array layout
fn main() {
let lorem = vec!["ipsum","dolor","sit","amet","consectetur","adipiscing","elit"];
}

View File

@ -0,0 +1,6 @@
// rustfmt-array_layout: Visual
// Array layout
fn main() {
let lorem = vec!["ipsum","dolor","sit","amet","consectetur","adipiscing","elit"];
}

View File

@ -0,0 +1,6 @@
// rustfmt-array_width: 10
// Array width
fn main() {
let lorem = vec!["ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit"];
}

View File

@ -0,0 +1,6 @@
// rustfmt-array_width: 100
// Array width
fn main() {
let lorem = vec!["ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit"];
}

View File

@ -0,0 +1,6 @@
// rustfmt-chain_indent: Block
// Chain indent
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
}

View File

@ -0,0 +1,6 @@
// rustfmt-chain_indent: Visual
// Chain indent
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
}

View File

@ -0,0 +1,6 @@
// rustfmt-chain_one_line_max: 10
// Chain one line max
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
}

View File

@ -0,0 +1,6 @@
// rustfmt-chain_one_line_max: 100
// Chain one line max
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
}

View File

@ -0,0 +1,12 @@
// rustfmt-closure_block_indent_threshold: 10
// Closure block indent threshold
fn main() {
lorem_ipsum(|| {
println!("lorem");
println!("ipsum");
println!("dolor");
println!("sit");
println!("amet");
});
}

View File

@ -0,0 +1,12 @@
// rustfmt-closure_block_indent_threshold: 2
// Closure block indent threshold
fn main() {
lorem_ipsum(|| {
println!("lorem");
println!("ipsum");
println!("dolor");
println!("sit");
println!("amet");
});
}

View File

@ -0,0 +1,7 @@
// rustfmt-comment_width: 40
// rustfmt-wrap_comments: true
// Comment width
fn main() {
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
}

View File

@ -0,0 +1,7 @@
// rustfmt-comment_width: 80
// rustfmt-wrap_comments: true
// Comment width
fn main() {
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
}

View File

@ -0,0 +1,7 @@
// rustfmt-comment_width: 40
// rustfmt-wrap_comments: false
// Comment width
fn main() {
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
}

View File

@ -0,0 +1,6 @@
// rustfmt-condense_wildcard_suffices: false
// Condense wildcard suffices
fn main() {
let (lorem, ipsum, _, _) = (1, 2, 3, 4);
}

View File

@ -0,0 +1,6 @@
// rustfmt-condense_wildcard_suffices: true
// Condense wildcard suffices
fn main() {
let (lorem, ipsum, _, _) = (1, 2, 3, 4);
}

View File

@ -0,0 +1,6 @@
// rustfmt-control_brace_style: AlwaysNextLine
// Control brace style
fn main() {
if lorem { println!("ipsum!"); } else { println!("dolor!"); }
}

View File

@ -0,0 +1,6 @@
// rustfmt-control_brace_style: AlwaysSameLine
// Control brace style
fn main() {
if lorem { println!("ipsum!"); } else { println!("dolor!"); }
}

View File

@ -0,0 +1,6 @@
// rustfmt-control_brace_style: ClosingNextLine
// Control brace style
fn main() {
if lorem { println!("ipsum!"); } else { println!("dolor!"); }
}

View File

@ -0,0 +1,6 @@
// rustfmt-disable_all_formatting: false
// Disable all formatting
fn main() {
if lorem{println!("ipsum!");}else{println!("dolor!");}
}

View File

@ -0,0 +1,6 @@
// rustfmt-disable_all_formatting: true
// Disable all formatting
fn main() {
iflorem{println!("ipsum!");}else{println!("dolor!");}
}

View File

@ -0,0 +1,6 @@
// rustfmt-error_on_line_overflow: false
// Error on line overflow
fn main() {
let lorem_ipsum_dolor_sit_amet_consectetur_adipiscing_elit_lorem_ipsum_dolor_sit_amet_consectetur_adipiscing_elit;
}

View File

@ -0,0 +1,16 @@
// rustfmt-fn_args_density: Compressed
// Function arguments density
trait Lorem {
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
// body
}
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit) {
// body
}
}

View File

@ -0,0 +1,20 @@
// rustfmt-fn_args_density: CompressedIfEmpty
// Function arguments density
trait Lorem {
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
// body
}
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit);
// FIXME: Previous line should be formatted like this:
// fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur,
// adipiscing: Adipiscing, elit: Elit);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit) {
// body
}
}

View File

@ -0,0 +1,16 @@
// rustfmt-fn_args_density: Tall
// Function arguments density
trait Lorem {
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
// body
}
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit) {
// body
}
}

View File

@ -0,0 +1,16 @@
// rustfmt-fn_args_density: Vertical
// Function arguments density
trait Lorem {
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
// body
}
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit);
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: onsectetur, adipiscing: Adipiscing, elit: Elit) {
// body
}
}

View File

@ -0,0 +1,10 @@
// rustfmt-fn_args_layout: Block
// Function arguments layout
fn lorem() {}
fn lorem(ipsum: usize) {}
fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize, elit: usize) {
// body
}

View File

@ -0,0 +1,10 @@
// rustfmt-fn_args_layout: Visual
// Function arguments layout
fn lorem() {}
fn lorem(ipsum: usize) {}
fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize, elit: usize) {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_args_paren_newline: false
// Function arguments parenthesis on a newline
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_args_paren_newline: true
// Function arguments parenthesis on a newline
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
// body
}

View File

@ -0,0 +1,14 @@
// rustfmt-fn_brace_style: AlwaysNextLine
// Function brace style
fn lorem() {
// body
}
fn lorem(ipsum: usize) {
// body
}
fn lorem<T>(ipsum: T) where T: Add + Sub + Mul + Div {
// body
}

View File

@ -0,0 +1,14 @@
// rustfmt-fn_brace_style: PreferSameLine
// Function brace style
fn lorem() {
// body
}
fn lorem(ipsum: usize) {
// body
}
fn lorem<T>(ipsum: T) where T: Add + Sub + Mul + Div {
// body
}

View File

@ -0,0 +1,14 @@
// rustfmt-fn_brace_style: SameLineWhere
// Function brace style
fn lorem() {
// body
}
fn lorem(ipsum: usize) {
// body
}
fn lorem<T>(ipsum: T) where T: Add + Sub + Mul + Div {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_call_style: Block
// Function call style
fn main() {
lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit");
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_call_style: Visual
// Function call style
fn main() {
lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit");
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_call_width: 10
// Function call width
fn main() {
lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit");
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_call_width: 100
// Function call width
fn main() {
lorem("lorem", "ipsum", "dolor");
}

View File

@ -0,0 +1,9 @@
// rustfmt-fn_empty_single_line: false
// Empty function on single line
fn lorem() {
}
fn lorem() {
}

View File

@ -0,0 +1,9 @@
// rustfmt-fn_empty_single_line: true
// Empty function on single line
fn lorem() {
}
fn lorem() {
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_return_indent: WithArgs
// Function return type indent
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur, adipiscing: Adipiscing) -> Elit where Ipsum: Eq {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-fn_return_indent: WithWhereClause
// Function return type indent
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur, adipiscing: Adipiscing) -> Elit where Ipsum: Eq {
// body
}

View File

@ -0,0 +1,11 @@
// rustfmt-fn_single_line: false
// Single-expression function on single line
fn lorem() -> usize {
42
}
fn lorem() -> usize {
let ipsum = 42;
ipsum
}

View File

@ -0,0 +1,11 @@
// rustfmt-fn_single_line: true
// Single-expression function on single line
fn lorem() -> usize {
42
}
fn lorem() -> usize {
let ipsum = 42;
ipsum
}

View File

@ -0,0 +1,6 @@
// rustfmt-force_explicit_abi: false
// Force explicit abi
extern {
pub static lorem: c_int;
}

View File

@ -0,0 +1,6 @@
// rustfmt-force_explicit_abi: true
// Force explicit abi
extern {
pub static lorem: c_int;
}

View File

@ -0,0 +1,9 @@
// rustfmt-force_format_strings: false
// rustfmt-format_strings: false
// rustfmt-max_width: 50
// rustfmt-error_on_line_overflow: false
// Force format strings
fn main() {
let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
}

View File

@ -0,0 +1,8 @@
// rustfmt-force_format_strings: true
// rustfmt-format_strings: false
// rustfmt-max_width: 50
// Force format strings
fn main() {
let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
}

View File

@ -0,0 +1,8 @@
// rustfmt-format_strings: false
// rustfmt-max_width: 50
// rustfmt-error_on_line_overflow: false
// Force format strings
fn main() {
let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
}

View File

@ -0,0 +1,7 @@
// rustfmt-format_strings: true
// rustfmt-max_width: 50
// Force format strings
fn main() {
let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
}

View File

@ -0,0 +1,6 @@
// rustfmt-generics_indent: Block
// Generics indent
fn lorem<Ipsum: Eq = usize, Dolor: Eq = usize, Sit: Eq = usize, Amet: Eq = usize, Adipiscing: Eq = usize, Consectetur: Eq = usize, Elit: Eq = usize>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, adipiscing: Adipiscing, consectetur: Consectetur, elit: Elit) -> T {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-generics_indent: Visual
// Generics indent
fn lorem<Ipsum: Eq = usize, Dolor: Eq = usize, Sit: Eq = usize, Amet: Eq = usize, Adipiscing: Eq = usize, Consectetur: Eq = usize, Elit: Eq = usize>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, adipiscing: Adipiscing, consectetur: Consectetur, elit: Elit) -> T {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-hard_tabs: false
// Hard tabs
fn lorem() -> usize {
42 // spaces before 42
}

View File

@ -0,0 +1,6 @@
// rustfmt-hard_tabs: true
// Hard tabs
fn lorem() -> usize {
42 // spaces before 42
}

View File

@ -0,0 +1,10 @@
// rustfmt-impl_empty_single_line: false
// Empty impl on single line
impl Lorem {
}
impl Ipsum {
}

View File

@ -0,0 +1,10 @@
// rustfmt-impl_empty_single_line: true
// Empty impl on single line
impl Lorem {
}
impl Ipsum {
}

View File

@ -0,0 +1,8 @@
// rustfmt-indent_match_arms: false
// Indent match arms
fn main() {
match lorem {
Lorem::Ipsum => (), Lorem::Dolor => (), Lorem::Sit => (), Lorem::Amet => (),
}
}

View File

@ -0,0 +1,8 @@
// rustfmt-indent_match_arms: true
// Indent match arms
fn main() {
match lorem {
Lorem::Ipsum => (), Lorem::Dolor => (), Lorem::Sit => (), Lorem::Amet => (),
}
}

View File

@ -0,0 +1,10 @@
// rustfmt-item_brace_style: AlwaysNextLine
// Item brace style
struct Lorem {
ipsum: bool,
}
struct Dolor<T> where T: Eq {
sit: T,
}

View File

@ -0,0 +1,10 @@
// rustfmt-item_brace_style: PreferSameLine
// Item brace style
struct Lorem {
ipsum: bool,
}
struct Dolor<T> where T: Eq {
sit: T,
}

View File

@ -0,0 +1,10 @@
// rustfmt-item_brace_style: SameLineWhere
// Item brace style
struct Lorem {
ipsum: bool,
}
struct Dolor<T> where T: Eq {
sit: T,
}

View File

@ -0,0 +1,11 @@
// rustfmt-match_block_trailing_comma: false
// Match block trailing comma
fn main() {
match lorem {
Lorem::Ipsum => {
println!("ipsum");
}
Lorem::Dolor => println!("dolor"),
}
}

View File

@ -0,0 +1,11 @@
// rustfmt-match_block_trailing_comma: true
// Match block trailing comma
fn main() {
match lorem {
Lorem::Ipsum => {
println!("ipsum");
}
Lorem::Dolor => println!("dolor"),
}
}

View File

@ -0,0 +1,8 @@
// rustfmt-normalize_comments: false
// Normalize comments
// Lorem ipsum:
fn dolor() -> usize {}
/* sit amet: */
fn adipiscing() -> usize {}

View File

@ -0,0 +1,8 @@
// rustfmt-normalize_comments: true
// Normalize comments
// Lorem ipsum:
fn dolor() -> usize {}
/* sit amet: */
fn adipiscing() -> usize {}

View File

@ -0,0 +1,4 @@
// rustfmt-reorder_imported_names: false
// Reorder imported names
use super::{lorem, ipsum, dolor, sit};

View File

@ -0,0 +1,4 @@
// rustfmt-reorder_imported_names: true
// Reorder imported names
use super::{lorem, ipsum, dolor, sit};

View File

@ -0,0 +1,7 @@
// rustfmt-reorder_imports: false
// Reorder imports
use lorem;
use ipsum;
use dolor;
use sit;

View File

@ -0,0 +1,7 @@
// rustfmt-reorder_imports: true
// Reorder imports
use lorem;
use ipsum;
use dolor;
use sit;

View File

@ -0,0 +1,6 @@
// rustfmt-single_line_if_else_max_width: 10
// Single line if-else max width
fn main() {
let lorem = if ipsum { dolor } else { sit };
}

View File

@ -0,0 +1,6 @@
// rustfmt-single_line_if_else_max_width: 100
// Single line if-else max width
fn main() {
let lorem = if ipsum { dolor } else { sit };
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_after_bound_colon: false
// Space after bound colon
fn lorem<T:Eq>(t:T) {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_after_bound_colon: true
// Space after bound colon
fn lorem<T:Eq>(t:T) {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_after_type_annotation_colon: false
// Space after type annotation colon
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_after_type_annotation_colon: true
// Space after type annotation colon
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_before_bound: false
// Space before bound
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_before_bound: true
// Space before bound
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_before_type_annotation: false
// Space before type-annotation
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-space_before_type_annotation: true
// Space before type-annotation
fn lorem<T:Eq>(t:T) {
let ipsum:Dolor = sit;
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_around_ranges: false
// Spaces around ranges
fn main() {
let lorem = 0..10;
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_around_ranges: true
// Spaces around ranges
fn main() {
let lorem = 0..10;
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_angle_brackets: false
// Spaces within angle-brackets
fn lorem<T: Eq>(t: T) {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_angle_brackets: true
// Spaces within angle-brackets
fn lorem<T: Eq>(t: T) {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_parens: false
// Spaces within parens
fn lorem<T: Eq>(t: T) {
let lorem = (ipsum, dolor);
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_parens: true
// Spaces within parens
fn lorem<T: Eq>(t: T) {
let lorem = (ipsum, dolor);
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_square_brackets: false
// Spaces within square-brackets
fn main() {
let lorem: [usize; 2] = [ipsum, dolor];
}

View File

@ -0,0 +1,6 @@
// rustfmt-spaces_within_square_brackets: true
// Spaces within square-brackets
fn main() {
let lorem: [usize; 2] = [ipsum, dolor];
}

View File

@ -0,0 +1,6 @@
// rustfmt-struct_lit_multiline_style: ForceMulti
// Struct literal multiline-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,7 @@
// rustfmt-struct_lit_multiline_style: PreferSingle
// rustfmt-struct_lit_width: 100
// Struct literal multiline-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,6 @@
// rustfmt-struct_lit_style: Block
// Struct literal-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,6 @@
// rustfmt-struct_lit_style: Visual
// Struct literal-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,6 @@
// rustfmt-struct_lit_width: 10
// Struct literal-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,6 @@
// rustfmt-struct_lit_width: 100
// Struct literal-style
fn main() {
let lorem = Lorem { ipsum: dolor, sit: amet };
}

View File

@ -0,0 +1,8 @@
// rustfmt-struct_variant_width: 10
// Struct variant width
enum Lorem {
Ipsum,
Dolor(bool),
Sit { amet: Consectetur, adipiscing: Elit, },
}

View File

@ -0,0 +1,8 @@
// rustfmt-struct_variant_width: 100
// Struct variant width
enum Lorem {
Ipsum,
Dolor(bool),
Sit { amet: Consectetur, adipiscing: Elit },
}

View File

@ -0,0 +1,11 @@
// rustfmt-tab_spaces: 2
// rustfmt-max_width: 30
// rustfmt-array_layout: Block
// Tab spaces
fn lorem() {
let ipsum = dolor();
let sit = vec![
"amet", "consectetur", "adipiscing", "elit."
];
}

View File

@ -0,0 +1,11 @@
// rustfmt-tab_spaces: 4
// rustfmt-max_width: 30
// rustfmt-array_layout: Block
// Tab spaces
fn lorem() {
let ipsum = dolor();
let sit = vec![
"amet", "consectetur", "adipiscing", "elit."
];
}

View File

@ -0,0 +1,7 @@
// rustfmt-trailing_comma: Always
// Trailing comma
fn main() {
let Lorem { ipsum, dolor, sit, } = amet;
let Lorem { ipsum, dolor, sit, amet, consectetur, adipiscing } = elit;
}

View File

@ -0,0 +1,7 @@
// rustfmt-trailing_comma: Never
// Trailing comma
fn main() {
let Lorem { ipsum, dolor, sit, } = amet;
let Lorem { ipsum, dolor, sit, amet, consectetur, adipiscing } = elit;
}

View File

@ -0,0 +1,7 @@
// rustfmt-trailing_comma: Vertical
// Trailing comma
fn main() {
let Lorem { ipsum, dolor, sit, } = amet;
let Lorem { ipsum, dolor, sit, amet, consectetur, adipiscing } = elit;
}

View File

@ -0,0 +1,7 @@
// rustfmt-type_punctuation_density: Compressed
// Type punctuation density
// FIXME: remove whitespace around `+`:
fn lorem<Ipsum:Dolor+Sit=Amet>() {
// body
}

View File

@ -0,0 +1,6 @@
// rustfmt-type_punctuation_density: Wide
// Type punctuation density
fn lorem<Ipsum:Dolor+Sit=Amet>() {
// body
}

Some files were not shown because too many files have changed in this diff Show More