Skip to content

Commit

Permalink
Merge #215 #218
Browse files Browse the repository at this point in the history
215: Rename .cargo/config to config.toml r=stlankes a=mkroening



218: Strongly link panic and oom handlers r=stlankes a=mkroening

Depends on hermit-os/hermit-rs#139.

Having weak linkage on the handlers does no harm but is not necessary after the before mentioned PR.

Co-authored-by: Martin Kröning <mkroening@posteo.net>
  • Loading branch information
bors[bot] and mkroening committed Jun 11, 2021
3 parents 3293b10 + 0f390e8 + 53dcc07 commit fe762de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/runtime_glue.rs
Expand Up @@ -16,7 +16,6 @@ use core::panic::PanicInfo;

// see https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
#[cfg(target_os = "hermit")]
#[linkage = "weak"]
#[panic_handler]
fn panic(info: &PanicInfo<'_>) -> ! {
print!("[{}][!!!PANIC!!!] ", arch::percore::core_id());
Expand All @@ -40,7 +39,6 @@ fn panic(info: &PanicInfo<'_>) -> ! {
}
}

#[linkage = "weak"]
#[alloc_error_handler]
fn rust_oom(layout: Layout) -> ! {
println!(
Expand Down

0 comments on commit fe762de

Please sign in to comment.