Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel
☠☠ backed out by 23091d9bdbcd ☠ ☠
authorNicolas Silva <nsilva@mozilla.com>
Wed, 05 Feb 2020 15:10:16 +0000
changeset 512589 f020ddf9062127a044ea3c026717e33e346ca8bc
parent 512588 b5b3a7ad01702bef807ed5b6b6853628ae995baa
child 512590 a2ed78dab7bcf0cf5a0ff49606cafdd55b2f2fd9
push id37093
push userdvarga@mozilla.com
push dateWed, 05 Feb 2020 21:50:17 +0000
treeherdermozilla-central@ee653474267a [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 {