Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel
authorNicolas Silva <nsilva@mozilla.com>
Mon, 10 Feb 2020 14:10:26 +0000
changeset 513036 a6e26b09dcfcc8e42b2398593cafd87eb9899199
parent 513035 c7d802a739c62e7c77b755ba7987aa0f4849e542
child 513037 6436566bc9a17c2999ae7cad759287bb53c3f663
push id37109
push userncsoregi@mozilla.com
push dateMon, 10 Feb 2020 21:33:47 +0000
treeherdermozilla-central@813768d074e3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1612988
milestone74.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel The test is meant to check that tupes work and a tuple of a single element needs a comma to differentiate it from just being the element. Differential Revision: https://phabricator.services.mozilla.com/D61681
gfx/wr/peek-poke/tests/max_size.rs
--- a/gfx/wr/peek-poke/tests/max_size.rs
+++ b/gfx/wr/peek-poke/tests/max_size.rs
@@ -47,17 +47,17 @@ fn test_option() {
 fn test_fixed_size_array() {
     assert_eq!(<[u32; 32]>::max_size(), 32 * size_of::<u32>());
     assert_eq!(<[u64; 8]>::max_size(), 8 * size_of::<u64>());
     assert_eq!(<[u8; 19]>::max_size(), 19 * size_of::<u8>());
 }
 
 #[test]
 fn test_tuple() {
-    assert_eq!(<(isize)>::max_size(), size_of::<isize>());
+    assert_eq!(<(isize, )>::max_size(), size_of::<isize>());
     assert_eq!(<(isize, isize, isize)>::max_size(), 3 * size_of::<isize>());
     assert_eq!(<(isize, ())>::max_size(), size_of::<isize>());
 }
 
 #[test]
 fn test_basic_struct() {
     #[derive(Debug, PeekPoke)]
     struct Bar {