From 052e59cc128993abfc5e1c8ce9148bef97df572c Mon Sep 17 00:00:00 2001 From: Austin Hicks Date: Wed, 23 Nov 2016 16:31:21 -0500 Subject: [PATCH] Make tidy --- src/librustc/ty/layout.rs | 2 +- src/test/run-pass/multiple-reprs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/ty/layout.rs b/src/librustc/ty/layout.rs index f580730064c3..342542edcf08 100644 --- a/src/librustc/ty/layout.rs +++ b/src/librustc/ty/layout.rs @@ -578,7 +578,7 @@ impl<'a, 'gcx, 'tcx> Struct { attr::ReprInt(_) => false, attr::ReprExtern => true, attr::ReprPacked => true, - attr::ReprSimd => bug!("Simd vectors should be represented as a layout::Vector") + attr::ReprSimd => bug!("Simd vectors should be represented as layout::Vector") } }); } diff --git a/src/test/run-pass/multiple-reprs.rs b/src/test/run-pass/multiple-reprs.rs index 7c6740d4fde5..726563e5b498 100644 --- a/src/test/run-pass/multiple-reprs.rs +++ b/src/test/run-pass/multiple-reprs.rs @@ -35,8 +35,8 @@ pub struct p0f_api_query { pub magic: u32, pub addr_type: u8, pub addr: [u8; 16], - } + pub fn main() { assert_eq!(size_of::(), 6); assert_eq!(size_of::(), 6);