File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
name = " rustc_codegen_gcc"
3
3
version = " 0.1.0"
4
4
authors = [" Antoni Boucher <bouanto@zoho.com>" ]
5
- edition = " 2018 "
5
+ edition = " 2024 "
6
6
license = " MIT OR Apache-2.0"
7
7
8
8
[lib ]
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ impl WriteBackendMethods for GccCodegenBackend {
413
413
cgcx : & CodegenContext < Self > ,
414
414
thin : ThinModule < Self > ,
415
415
) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
416
- back:: lto:: optimize_thin_module ( thin, cgcx)
416
+ unsafe { back:: lto:: optimize_thin_module ( thin, cgcx) }
417
417
}
418
418
419
419
unsafe fn codegen (
@@ -422,7 +422,7 @@ impl WriteBackendMethods for GccCodegenBackend {
422
422
module : ModuleCodegen < Self :: Module > ,
423
423
config : & ModuleConfig ,
424
424
) -> Result < CompiledModule , FatalError > {
425
- back:: write:: codegen ( cgcx, dcx, module, config)
425
+ unsafe { back:: write:: codegen ( cgcx, dcx, module, config) }
426
426
}
427
427
428
428
fn prepare_thin (
@@ -454,7 +454,7 @@ impl WriteBackendMethods for GccCodegenBackend {
454
454
}
455
455
456
456
/// This is the entrypoint for a hot plugged rustc_codegen_gccjit
457
- #[ no_mangle]
457
+ #[ unsafe ( no_mangle) ]
458
458
pub fn __rustc_codegen_backend ( ) -> Box < dyn CodegenBackend > {
459
459
#[ cfg( feature = "master" ) ]
460
460
let info = {
You can’t perform that action at this time.
0 commit comments