Update tests
This commit is contained in:
parent
77a2e9858b
commit
dc8d3aa23a
@ -2106,7 +2106,7 @@ fn count_line_breaks(src: &str) -> usize {
|
|||||||
// Expression did not fit on the same line as the identifier or is
|
// Expression did not fit on the same line as the identifier or is
|
||||||
// at least three lines big. Try splitting the line and see
|
// at least three lines big. Try splitting the line and see
|
||||||
// if that works better.
|
// if that works better.
|
||||||
let new_shape = try_opt!(shape.block_left(context.config.tab_spaces));
|
let new_shape = try_opt!(shape.block_left(context.config.tab_spaces()));
|
||||||
let new_rhs = ex.rewrite(context, new_shape);
|
let new_rhs = ex.rewrite(context, new_shape);
|
||||||
|
|
||||||
// FIXME: DRY!
|
// FIXME: DRY!
|
||||||
|
@ -41,6 +41,12 @@ fn main() {
|
|||||||
vec![a, b; c];
|
vec![a, b; c];
|
||||||
vec![a; b, c];
|
vec![a; b, c];
|
||||||
|
|
||||||
|
vec![a; (|x| { let y = x + 1; let z = y + 1; z })(2)];
|
||||||
|
vec![a; xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx];
|
||||||
|
vec![a; unsafe {
|
||||||
|
x + 1
|
||||||
|
}];
|
||||||
|
|
||||||
unknown_bracket_macro__comma_should_not_be_stripped![
|
unknown_bracket_macro__comma_should_not_be_stripped![
|
||||||
a,
|
a,
|
||||||
];
|
];
|
||||||
|
@ -45,6 +45,16 @@ fn main() {
|
|||||||
vec![a, b; c];
|
vec![a, b; c];
|
||||||
vec![a; b, c];
|
vec![a; b, c];
|
||||||
|
|
||||||
|
vec![a;
|
||||||
|
(|x| {
|
||||||
|
let y = x + 1;
|
||||||
|
let z = y + 1;
|
||||||
|
z
|
||||||
|
})(2)];
|
||||||
|
vec![a;
|
||||||
|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx];
|
||||||
|
vec![a; unsafe { x + 1 }];
|
||||||
|
|
||||||
unknown_bracket_macro__comma_should_not_be_stripped![
|
unknown_bracket_macro__comma_should_not_be_stripped![
|
||||||
a,
|
a,
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user