File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22name = " rustc_codegen_gcc"
33version = " 0.1.0"
44authors = [" Antoni Boucher <bouanto@zoho.com>" ]
5- edition = " 2018 "
5+ edition = " 2024 "
66license = " MIT OR Apache-2.0"
77
88[lib ]
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ impl WriteBackendMethods for GccCodegenBackend {
413413 cgcx : & CodegenContext < Self > ,
414414 thin : ThinModule < Self > ,
415415 ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
416- back:: lto:: optimize_thin_module ( thin, cgcx)
416+ unsafe { back:: lto:: optimize_thin_module ( thin, cgcx) }
417417 }
418418
419419 unsafe fn codegen (
@@ -422,7 +422,7 @@ impl WriteBackendMethods for GccCodegenBackend {
422422 module : ModuleCodegen < Self :: Module > ,
423423 config : & ModuleConfig ,
424424 ) -> Result < CompiledModule , FatalError > {
425- back:: write:: codegen ( cgcx, dcx, module, config)
425+ unsafe { back:: write:: codegen ( cgcx, dcx, module, config) }
426426 }
427427
428428 fn prepare_thin (
@@ -454,7 +454,7 @@ impl WriteBackendMethods for GccCodegenBackend {
454454}
455455
456456/// This is the entrypoint for a hot plugged rustc_codegen_gccjit
457- #[ no_mangle]
457+ #[ unsafe ( no_mangle) ]
458458pub fn __rustc_codegen_backend ( ) -> Box < dyn CodegenBackend > {
459459 #[ cfg( feature = "master" ) ]
460460 let info = {
You can’t perform that action at this time.
0 commit comments