diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-09-20 18:44:49 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-09-20 18:45:25 +0200 |
| commit | 5ee6304d8d738d05debfcb712ee57b024f5e1b95 (patch) | |
| tree | 1ef974629ddfd42fb980253810f6153c81367718 /tests | |
| parent | 0952d7354e91505104a61578392e60b5d12f1b71 (diff) | |
Fix struct overflows
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/source/expr.rs | 8 | ||||
| -rw-r--r-- | tests/source/struct_lits.rs | 8 | ||||
| -rw-r--r-- | tests/target/expr.rs | 7 | ||||
| -rw-r--r-- | tests/target/struct_lits.rs | 16 |
4 files changed, 20 insertions, 19 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index 4b5e262bd26..faa0d3775c7 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -173,11 +173,3 @@ fn arrays() { [ 1 + 3, 4 , 5, 6, 7, 7, fncall::<Vec<_>>(3-1)] } - -fn struct_exprs() { - Foo - { a : 1, b:f( 2)}; - Foo{a:1,b:f(2),..g(3)}; - // FIXME: should be wrapped (#231) - LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { ..base }; -} diff --git a/tests/source/struct_lits.rs b/tests/source/struct_lits.rs index ead7b749d5a..69f90879164 100644 --- a/tests/source/struct_lits.rs +++ b/tests/source/struct_lits.rs @@ -83,3 +83,11 @@ fn issue278() { b: 0, }; } + +fn struct_exprs() { + Foo + { a : 1, b:f( 2)}; + Foo{a:1,b:f(2),..g(3)}; + LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { ..base }; + IntrinsicISizesContribution { content_intrinsic_sizes: IntrinsicISizes { minimum_inline_size: 0, }, }; +} diff --git a/tests/target/expr.rs b/tests/target/expr.rs index 7b579960d53..bb629f12126 100644 --- a/tests/target/expr.rs +++ b/tests/target/expr.rs @@ -183,10 +183,3 @@ fn arrays() { [1 + 3, 4, 5, 6, 7, 7, fncall::<Vec<_>>(3 - 1)] } - -fn struct_exprs() { - Foo { a: 1, b: f(2) }; - Foo { a: 1, b: f(2), ..g(3) }; - // FIXME: should be wrapped (#231) - LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { ..base }; -} diff --git a/tests/target/struct_lits.rs b/tests/target/struct_lits.rs index b95772d41ec..ac7b8aaaeab 100644 --- a/tests/target/struct_lits.rs +++ b/tests/target/struct_lits.rs @@ -65,10 +65,7 @@ fn main() { fn matcher() { TagTerminatedByteMatcher { - matcher: ByteMatcher { - pattern: b"<HTML", - mask: b"\xFF\xDF\xDF\xDF\xDF\xFF", - }, + matcher: ByteMatcher { pattern: b"<HTML", mask: b"\xFF\xDF\xDF\xDF\xDF\xFF" }, }; } @@ -101,3 +98,14 @@ fn issue278() { b: 0, }; } + +fn struct_exprs() { + Foo { a: 1, b: f(2) }; + Foo { a: 1, b: f(2), ..g(3) }; + LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { + ..base + }; + IntrinsicISizesContribution { + content_intrinsic_sizes: IntrinsicISizes { minimum_inline_size: 0 }, + }; +} |
