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 5
5
#![ feature( no_core) ]
6
6
#![ no_core]
7
7
#![ no_std]
8
+ #![ crate_type = "lib" ]
8
9
9
10
extern crate minicore;
10
11
use minicore:: * ;
11
12
12
13
#[ warn( uses_power_alignment) ]
13
-
14
14
#[ repr( C ) ]
15
15
pub struct Floats {
16
16
a : f64 ,
@@ -96,32 +96,32 @@ pub struct FloatAgg7 {
96
96
97
97
#[ repr( C ) ]
98
98
pub struct A {
99
- d : f64 ,
99
+ d : f64 ,
100
100
}
101
101
#[ repr( C ) ]
102
102
pub 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
106
106
}
107
107
#[ repr( C ) ]
108
108
pub 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
111
111
}
112
112
#[ repr( C ) ]
113
113
pub struct D {
114
- x : f64 ,
114
+ x : f64 ,
115
115
}
116
116
#[ repr( C ) ]
117
117
pub 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
120
120
}
121
121
#[ repr( C ) ]
122
122
pub 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
125
125
}
126
126
#[ repr( C ) ]
127
127
pub struct G {
@@ -173,4 +173,3 @@ pub struct M {
173
173
b : K ,
174
174
c : L ,
175
175
}
176
- fn main ( ) { }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LL | c: f64,
5
5
| ^^^^^^
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/reprc-power-alignment.rs:12 :8
8
+ --> $DIR/reprc-power-alignment.rs:13 :8
9
9
|
10
10
LL | #[warn(uses_power_alignment)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
@@ -73,28 +73,28 @@ LL | y: Floats,
73
73
| ^^^^^^^^^
74
74
75
75
warning: 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
77
77
|
78
- LL | d: f64,
79
- | ^^^^^^
78
+ LL | d: f64,
79
+ | ^^^^^^
80
80
81
81
warning: 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
83
83
|
84
- LL | b: B,
85
- | ^^^^
84
+ LL | b: B,
85
+ | ^^^^
86
86
87
87
warning: 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
89
89
|
90
- LL | d: D,
91
- | ^^^^
90
+ LL | d: D,
91
+ | ^^^^
92
92
93
93
warning: 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
95
95
|
96
- LL | b: f64,
97
- | ^^^^^^
96
+ LL | b: f64,
97
+ | ^^^^^^
98
98
99
99
warning: repr(C) does not follow the power alignment rule. This may affect platform C ABI compatibility for this type
100
100
--> $DIR/reprc-power-alignment.rs:130:5
You can’t perform that action at this time.
0 commit comments