Skip to content

Commit

Permalink
rust-shed: fix build with rust 1.82 (#60)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #60

Rust 1.82 deprecated std::panic::PanicInfo for its new name since 1.81 std::panic::PanicInfoHook.

This should fix github CI for rust-shed

Reviewed By: dtolnay

Differential Revision: D64618466

fbshipit-source-id: 885504da4a7b629dbab772580b0c473db66f232f
  • Loading branch information
ahornby authored and facebook-github-bot committed Oct 20, 2024
1 parent 96baed2 commit e115040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shed/panichandler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::io;
use std::io::BufWriter;
use std::io::Write;
use std::panic;
use std::panic::PanicInfo;
use std::panic::PanicHookInfo;
use std::ptr;

use backtrace::Backtrace;
Expand All @@ -40,7 +40,7 @@ pub enum Fate {
Abort,
}

fn handler(panic: &PanicInfo<'_>, fate: Fate) {
fn handler(panic: &PanicHookInfo<'_>, fate: Fate) {
let stderr = io::stderr();
let mut w = BufWriter::new(stderr.lock());

Expand Down

0 comments on commit e115040

Please sign in to comment.