From cc3fd5d554af7bb444c644c2469147812da8f533 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:43:05 +0000 Subject: [PATCH] Fix warnings --- src/debuginfo/line_info.rs | 4 +--- src/intrinsics/mod.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/debuginfo/line_info.rs b/src/debuginfo/line_info.rs index 7346b2019..b3ee37b90 100644 --- a/src/debuginfo/line_info.rs +++ b/src/debuginfo/line_info.rs @@ -14,9 +14,7 @@ use rustc_span::{ use cranelift_codegen::binemit::CodeOffset; use cranelift_codegen::MachSrcLoc; -use gimli::write::{ - Address, AttributeValue, FileId, FileInfo, LineProgram, LineString, LineStringTable, -}; +use gimli::write::{AttributeValue, FileId, FileInfo, LineProgram, LineString, LineStringTable}; // OPTIMIZATION: It is cheaper to do this in one pass than using `.parent()` and `.file_name()`. fn split_path_dir_and_file(path: &Path) -> (&Path, &OsStr) { diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index d113049f3..d9cc09e5b 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -372,7 +372,7 @@ fn codegen_regular_intrinsic_call<'tcx>( args: &[mir::Operand<'tcx>], ret: CPlace<'tcx>, destination: Option, - unwind: UnwindAction, + _unwind: UnwindAction, source_info: mir::SourceInfo, ) { let usize_layout = fx.layout_of(fx.tcx.types.usize);