From 1ceda5bb7e03200d402871e3e9105059d0ce64b0 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 21 Oct 2021 20:18:01 +0200 Subject: [PATCH] Remove unncesessary TryFrom and TryInto impls --- src/archive.rs | 1 - src/debuginfo/object.rs | 2 -- src/lib.rs | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/archive.rs b/src/archive.rs index 71f510c037f..14f1f9d61df 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -1,7 +1,6 @@ //! Creation of ar archives like for the lib and staticlib crate type use std::collections::BTreeMap; -use std::convert::TryFrom; use std::fs::File; use std::io::{self, Read, Seek}; use std::path::{Path, PathBuf}; diff --git a/src/debuginfo/object.rs b/src/debuginfo/object.rs index 9984dc92c44..9dc9b2cf9f8 100644 --- a/src/debuginfo/object.rs +++ b/src/debuginfo/object.rs @@ -1,5 +1,3 @@ -use std::convert::{TryFrom, TryInto}; - use rustc_data_structures::fx::FxHashMap; use cranelift_module::FuncId; diff --git a/src/lib.rs b/src/lib.rs index 2f3821dee79..c392069cbe0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,8 +71,6 @@ mod value_and_place; mod vtable; mod prelude { - pub(crate) use std::convert::{TryFrom, TryInto}; - pub(crate) use rustc_span::{FileNameDisplayPreference, Span}; pub(crate) use rustc_hir::def_id::{DefId, LOCAL_CRATE};