@@ -17,7 +17,9 @@ pub mod normal {
1717pub extern "C" fn function ( a : usize , b : usize ) -> usize {
1818//~^ ERROR unused variable: `a`
1919//~| ERROR unused variable: `b`
20- unsafe { asm ! ( "" , options( noreturn) ) ; }
20+ unsafe {
21+ asm ! ( "" , options( noreturn) ) ;
22+ }
2123}
2224
2325pub struct Normal ;
@@ -26,62 +28,80 @@ pub mod normal {
2628pub extern "C" fn associated ( a : usize , b : usize ) -> usize {
2729//~^ ERROR unused variable: `a`
2830//~| ERROR unused variable: `b`
29- unsafe { asm ! ( "" , options( noreturn) ) ; }
31+ unsafe {
32+ asm ! ( "" , options( noreturn) ) ;
33+ }
3034}
3135
3236pub extern "C" fn method ( & self , a : usize , b : usize ) -> usize {
3337//~^ ERROR unused variable: `a`
3438//~| ERROR unused variable: `b`
35- unsafe { asm ! ( "" , options( noreturn) ) ; }
39+ unsafe {
40+ asm ! ( "" , options( noreturn) ) ;
41+ }
3642}
3743}
3844
3945impl super :: Trait for Normal {
4046extern "C" fn trait_associated ( a : usize , b : usize ) -> usize {
4147//~^ ERROR unused variable: `a`
4248//~| ERROR unused variable: `b`
43- unsafe { asm ! ( "" , options( noreturn) ) ; }
49+ unsafe {
50+ asm ! ( "" , options( noreturn) ) ;
51+ }
4452}
4553
4654extern "C" fn trait_method ( & self , a : usize , b : usize ) -> usize {
4755//~^ ERROR unused variable: `a`
4856//~| ERROR unused variable: `b`
49- unsafe { asm ! ( "" , options( noreturn) ) ; }
57+ unsafe {
58+ asm ! ( "" , options( noreturn) ) ;
59+ }
5060}
5161}
5262}
5363
5464pub mod naked {
55- use std:: arch:: asm ;
65+ use std:: arch:: naked_asm ;
5666
5767#[ naked]
5868pub extern "C" fn function ( a : usize , b : usize ) -> usize {
59- unsafe { asm ! ( "" , options( noreturn) ) ; }
69+ unsafe {
70+ naked_asm ! ( "" , options( noreturn) ) ;
71+ }
6072}
6173
6274pub struct Naked ;
6375
6476impl Naked {
6577#[ naked]
6678pub extern "C" fn associated ( a : usize , b : usize ) -> usize {
67- unsafe { asm ! ( "" , options( noreturn) ) ; }
79+ unsafe {
80+ naked_asm ! ( "" , options( noreturn) ) ;
81+ }
6882}
6983
7084#[ naked]
7185pub extern "C" fn method ( & self , a : usize , b : usize ) -> usize {
72- unsafe { asm ! ( "" , options( noreturn) ) ; }
86+ unsafe {
87+ naked_asm ! ( "" , options( noreturn) ) ;
88+ }
7389}
7490}
7591
7692impl super :: Trait for Naked {
7793#[ naked]
7894extern "C" fn trait_associated ( a : usize , b : usize ) -> usize {
79- unsafe { asm ! ( "" , options( noreturn) ) ; }
95+ unsafe {
96+ naked_asm ! ( "" , options( noreturn) ) ;
97+ }
8098}
8199
82100#[ naked]
83101extern "C" fn trait_method ( & self , a : usize , b : usize ) -> usize {
84- unsafe { asm ! ( "" , options( noreturn) ) ; }
102+ unsafe {
103+ naked_asm ! ( "" , options( noreturn) ) ;
104+ }
85105}
86106}
87107}
0 commit comments