From 1095082eea65a4bfb577221ae1cac07330770aaa Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 9 Feb 2017 17:55:39 +0100 Subject: [PATCH 1/2] remove wrong packed struct test --- src/test/run-pass/dst-field-align.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/test/run-pass/dst-field-align.rs b/src/test/run-pass/dst-field-align.rs index cf2acfe986c21..3a2cf28a24f86 100644 --- a/src/test/run-pass/dst-field-align.rs +++ b/src/test/run-pass/dst-field-align.rs @@ -55,12 +55,6 @@ fn main() { // The pointers should be the same assert_eq!(ptr1, ptr2); - // Test that packed structs are handled correctly - let p : Packed = Packed { a: 0, b: 13 }; - assert_eq!(p.b.get(), 13); - let p : &Packed = &p; - assert_eq!(p.b.get(), 13); - // Test that nested DSTs work properly let f : Foo> = Foo { a: 0, b: Foo { a: 1, b: 17 }}; assert_eq!(f.b.b.get(), 17); From c7f9811abab9289eac9b577aba4c60a5afb0bef4 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 9 Feb 2017 17:58:26 +0100 Subject: [PATCH 2/2] removed unused struct --- src/test/run-pass/dst-field-align.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/test/run-pass/dst-field-align.rs b/src/test/run-pass/dst-field-align.rs index 3a2cf28a24f86..c36833f2fb627 100644 --- a/src/test/run-pass/dst-field-align.rs +++ b/src/test/run-pass/dst-field-align.rs @@ -25,12 +25,6 @@ struct Baz { a: T } -#[repr(packed)] -struct Packed { - a: u8, - b: T -} - struct HasDrop { ptr: Box, data: T