Skip to content

Commit

Permalink
Updated the version of rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Feb 18, 2024
1 parent 4eaa771 commit aa8885b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ mod utilis;

pub mod config;
// rustc functions used here.
use rustc_data_structures::fx::FxHasher;
use std::hash::BuildHasherDefault;
use crate::rustc_middle::dep_graph::DepContext;
use rustc_codegen_ssa::{
back::archive::{
Expand Down Expand Up @@ -221,7 +223,7 @@ impl CodegenBackend for MyBackend {
ongoing_codegen: Box<dyn Any>,
_sess: &Session,
outputs: &OutputFilenames,
) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>){
std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {
use std::io::Write;
let (_asm_name, asm, metadata, crate_info) = *ongoing_codegen
Expand Down Expand Up @@ -252,7 +254,7 @@ impl CodegenBackend for MyBackend {
metadata,
crate_info,
};
Ok((codegen_results, FxIndexMap::default()))
(codegen_results, FxIndexMap::default())
}))
.expect("Could not join_codegen")
}
Expand Down

0 comments on commit aa8885b

Please sign in to comment.