Skip to content

Commit 3278cb5

Browse files
Migrate to 2024 edition
1 parent 633ecc8 commit 3278cb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rustc_codegen_gcc"
33
version = "0.1.0"
44
authors = ["Antoni Boucher <bouanto@zoho.com>"]
5-
edition = "2018"
5+
edition = "2024"
66
license = "MIT OR Apache-2.0"
77

88
[lib]

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)]
458458
pub fn __rustc_codegen_backend() -> Box<dyn CodegenBackend> {
459459
#[cfg(feature = "master")]
460460
let info = {

0 commit comments

Comments
 (0)