@@ -17,7 +17,9 @@ pub mod normal {
1717 pub 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
2325 pub struct Normal ;
@@ -26,62 +28,80 @@ pub mod normal {
2628 pub 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
3236 pub 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
3945 impl super :: Trait for Normal {
4046 extern "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
4654 extern "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]
5868 pub extern "C" fn function ( a : usize , b : usize ) -> usize {
59- unsafe { asm ! ( "" , options( noreturn) ) ; }
69+ unsafe {
70+ naked_asm ! ( "" , options( noreturn) ) ;
71+ }
6072 }
6173
6274 pub struct Naked ;
6375
6476 impl Naked {
6577 #[ naked]
6678 pub 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]
7185 pub 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
7692 impl super :: Trait for Naked {
7793 #[ naked]
7894 extern "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]
83101 extern "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