mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Upgrade Rust to 1.82.0 (#34592)
* Fix deprecated PanicInfo alias Fixes: ```rust use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead ``` Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * build: upgrade rustc to 1.82.0 Tracking issue for the silenced lints: https://github.com/servo/servo/issues/34591 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
c0703b605d
commit
6a816649d6
10 changed files with 23 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::io::Write;
|
||||
use std::panic::PanicInfo;
|
||||
use std::panic::PanicHookInfo;
|
||||
use std::{env, thread};
|
||||
|
||||
use log::{error, warn};
|
||||
|
@ -11,7 +11,7 @@ use servo::config::opts;
|
|||
|
||||
use crate::crash_handler::raise_signal_or_exit_with_error;
|
||||
|
||||
pub(crate) fn panic_hook(info: &PanicInfo) {
|
||||
pub(crate) fn panic_hook(info: &PanicHookInfo) {
|
||||
warn!("Panic hook called.");
|
||||
let msg = match info.payload().downcast_ref::<&'static str>() {
|
||||
Some(s) => *s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue