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! {
387387}
388388
389389#[ cfg( all( not( jit) , target_arch = "x86_64" ) ) ]
390- #[ naked]
390+ #[ unsafe ( naked) ]
391391extern "C" fn naked_test ( ) {
392- unsafe {
393- naked_asm ! ( "ret" ) ;
394- }
392+ naked_asm ! ( "ret" )
395393}
396394
397395#[ repr( C ) ]
Original file line number Diff line number Diff line change 11use cranelift_frontend:: { FunctionBuilder , FunctionBuilderContext } ;
22use rustc_hir:: LangItem ;
3- use rustc_middle:: ty:: { AssocKind , GenericArg } ;
3+ use rustc_middle:: ty:: { AssocTag , GenericArg } ;
44use rustc_session:: config:: EntryFnType ;
55use rustc_span:: { DUMMY_SP , Ident } ;
66
@@ -107,7 +107,7 @@ pub(crate) fn maybe_create_entry_wrapper(
107107 . find_by_ident_and_kind (
108108 tcx,
109109 Ident :: from_str ( "report" ) ,
110- AssocKind :: Fn ,
110+ AssocTag :: Fn ,
111111 termination_trait,
112112 )
113113 . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments