File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -387,11 +387,9 @@ global_asm! {
387
387
}
388
388
389
389
#[ cfg( all( not( jit) , target_arch = "x86_64" ) ) ]
390
- #[ naked]
390
+ #[ unsafe ( naked) ]
391
391
extern "C" fn naked_test ( ) {
392
- unsafe {
393
- naked_asm ! ( "ret" ) ;
394
- }
392
+ naked_asm ! ( "ret" )
395
393
}
396
394
397
395
#[ repr( C ) ]
Original file line number Diff line number Diff line change 1
1
use cranelift_frontend:: { FunctionBuilder , FunctionBuilderContext } ;
2
2
use rustc_hir:: LangItem ;
3
- use rustc_middle:: ty:: { AssocKind , GenericArg } ;
3
+ use rustc_middle:: ty:: { AssocTag , GenericArg } ;
4
4
use rustc_session:: config:: EntryFnType ;
5
5
use rustc_span:: { DUMMY_SP , Ident } ;
6
6
@@ -107,7 +107,7 @@ pub(crate) fn maybe_create_entry_wrapper(
107
107
. find_by_ident_and_kind (
108
108
tcx,
109
109
Ident :: from_str ( "report" ) ,
110
- AssocKind :: Fn ,
110
+ AssocTag :: Fn ,
111
111
termination_trait,
112
112
)
113
113
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments