File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( rustc_private) ]
2
2
#![ feature( cfg_match) ]
3
- #![ feature( cell_update) ]
4
3
#![ feature( float_gamma) ]
5
4
#![ feature( float_erf) ]
6
5
#![ feature( map_try_insert) ]
Original file line number Diff line number Diff line change 1
1
2
2
thread $NAME panicked at tests/fail/panic/tls_macro_const_drop_panic.rs:LL:CC:
3
3
ow
4
- fatal runtime error: thread local panicked on drop
4
+ fatal runtime error: thread local panicked on drop, aborting
5
5
error: abnormal termination: the program aborted execution
6
6
7
7
error: aborting due to 1 previous error
Original file line number Diff line number Diff line change 1
1
2
2
thread $NAME panicked at tests/fail/panic/tls_macro_drop_panic.rs:LL:CC:
3
3
ow
4
- fatal runtime error: thread local panicked on drop
4
+ fatal runtime error: thread local panicked on drop, aborting
5
5
error: abnormal termination: the program aborted execution
6
6
7
7
error: aborting due to 1 previous error
Original file line number Diff line number Diff line change
1
+ //@compile-flags: -Zmin-function-alignment=8
2
+ #![ feature( fn_align) ]
3
+
4
+ // When a function uses `repr(align(N))`, the function address should be a multiple of `N`.
5
+
6
+ #[ repr( align( 256 ) ) ]
7
+ fn foo ( ) { }
8
+
9
+ #[ repr( align( 16 ) ) ]
10
+ fn bar ( ) { }
11
+
12
+ #[ repr( align( 4 ) ) ]
13
+ fn baz ( ) { }
14
+
15
+ fn main ( ) {
16
+ assert ! ( ( foo as usize ) . is_multiple_of( 256 ) ) ;
17
+ assert ! ( ( bar as usize ) . is_multiple_of( 16 ) ) ;
18
+
19
+ // The maximum of `repr(align(N))` and `-Zmin-function-alignment=N` is used.
20
+ assert ! ( ( baz as usize ) . is_multiple_of( 8 ) ) ;
21
+ }
You can’t perform that action at this time.
0 commit comments