File tree Expand file tree Collapse file tree 2 files changed +25
-26
lines changed Expand file tree Collapse file tree 2 files changed +25
-26
lines changed Original file line number Diff line number Diff line change 55#![ feature( no_core) ]
66#![ no_core]
77#![ no_std]
8+ #![ crate_type = "lib" ]
89
910extern crate minicore;
1011use minicore:: * ;
1112
1213#[ warn( uses_power_alignment) ]
13-
1414#[ repr( C ) ]
1515pub struct Floats {
1616 a : f64 ,
@@ -96,32 +96,32 @@ pub struct FloatAgg7 {
9696
9797#[ repr( C ) ]
9898pub struct A {
99- d : f64 ,
99+ d : f64 ,
100100}
101101#[ repr( C ) ]
102102pub struct B {
103- a : A ,
104- f : f32 ,
105- d : f64 , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
103+ a : A ,
104+ f : f32 ,
105+ d : f64 , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
106106}
107107#[ repr( C ) ]
108108pub struct C {
109- c : u8 ,
110- b : B , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
109+ c : u8 ,
110+ b : B , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
111111}
112112#[ repr( C ) ]
113113pub struct D {
114- x : f64 ,
114+ x : f64 ,
115115}
116116#[ repr( C ) ]
117117pub struct E {
118- x : i32 ,
119- d : D , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
118+ x : i32 ,
119+ d : D , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
120120}
121121#[ repr( C ) ]
122122pub struct F {
123- a : u8 ,
124- b : f64 , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
123+ a : u8 ,
124+ b : f64 , //~ WARNING repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
125125}
126126#[ repr( C ) ]
127127pub struct G {
@@ -173,4 +173,3 @@ pub struct M {
173173 b : K ,
174174 c : L ,
175175}
176- fn main ( ) { }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LL | c: f64,
55 | ^^^^^^
66 |
77note: the lint level is defined here
8- --> $DIR/reprc-power-alignment.rs:12 :8
8+ --> $DIR/reprc-power-alignment.rs:13 :8
99 |
1010LL | #[warn(uses_power_alignment)]
1111 | ^^^^^^^^^^^^^^^^^^^^
@@ -73,28 +73,28 @@ LL | y: Floats,
7373 | ^^^^^^^^^
7474
7575warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
76- --> $DIR/reprc-power-alignment.rs:105:3
76+ --> $DIR/reprc-power-alignment.rs:105:5
7777 |
78- LL | d: f64,
79- | ^^^^^^
78+ LL | d: f64,
79+ | ^^^^^^
8080
8181warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
82- --> $DIR/reprc-power-alignment.rs:110:3
82+ --> $DIR/reprc-power-alignment.rs:110:5
8383 |
84- LL | b: B,
85- | ^^^^
84+ LL | b: B,
85+ | ^^^^
8686
8787warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
88- --> $DIR/reprc-power-alignment.rs:119:3
88+ --> $DIR/reprc-power-alignment.rs:119:5
8989 |
90- LL | d: D,
91- | ^^^^
90+ LL | d: D,
91+ | ^^^^
9292
9393warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
94- --> $DIR/reprc-power-alignment.rs:124:3
94+ --> $DIR/reprc-power-alignment.rs:124:5
9595 |
96- LL | b: f64,
97- | ^^^^^^
96+ LL | b: f64,
97+ | ^^^^^^
9898
9999warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
100100 --> $DIR/reprc-power-alignment.rs:130:5
You can’t perform that action at this time.
0 commit comments