remove no longer needed imports

This commit is contained in:
Ralf Jung 2022-04-09 11:20:32 -04:00
parent a57c30118a
commit 855af088b8
14 changed files with 2 additions and 19 deletions

View file

@ -9,7 +9,6 @@ extern crate rustc_metadata;
extern crate rustc_middle;
extern crate rustc_session;
use std::convert::TryFrom;
use std::env;
use std::num::NonZeroU64;
use std::path::PathBuf;

View file

@ -1,6 +1,5 @@
//! Main evaluator loop and setting up the initial stack frame.
use std::convert::TryFrom;
use std::ffi::OsStr;
use std::iter;

View file

@ -1,4 +1,3 @@
use std::convert::{TryFrom, TryInto};
use std::mem;
use std::num::NonZeroUsize;
use std::time::Duration;

View file

@ -4,7 +4,6 @@ use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::{self, Instance};
use rustc_span::{BytePos, Loc, Symbol};
use rustc_target::{abi::Size, spec::abi::Abi};
use std::convert::TryInto as _;
impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mir, 'tcx> {}
pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx> {

View file

@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::env;
use std::ffi::{OsStr, OsString};
use std::io::ErrorKind;

View file

@ -1,8 +1,4 @@
use std::{
collections::hash_map::Entry,
convert::{TryFrom, TryInto},
iter,
};
use std::{collections::hash_map::Entry, iter};
use log::trace;

View file

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::iter;
use log::trace;

View file

@ -1,5 +1,4 @@
use std::borrow::Cow;
use std::convert::TryFrom;
use std::ffi::{OsStr, OsString};
use std::iter;
use std::path::{Path, PathBuf};

View file

@ -1,6 +1,5 @@
use std::borrow::Cow;
use std::collections::BTreeMap;
use std::convert::{TryFrom, TryInto};
use std::fs::{
read_dir, remove_dir, remove_file, rename, DirBuilder, File, FileType, OpenOptions, ReadDir,
};

View file

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::*;
use rustc_middle::ty::layout::LayoutOf;
use rustc_target::spec::abi::Abi;

View file

@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::time::{Duration, Instant, SystemTime};
use crate::*;

View file

@ -1,5 +1,4 @@
use std::collections::{hash_map::Entry, HashMap, VecDeque};
use std::convert::TryFrom;
use std::num::NonZeroU32;
use std::ops::Not;

View file

@ -2,7 +2,6 @@
use std::cell::RefCell;
use std::collections::hash_map::Entry;
use std::convert::TryFrom;
use std::num::TryFromIntError;
use std::time::{Duration, Instant, SystemTime};

View file

@ -1,6 +1,6 @@
use rustc_index::vec::Idx;
use smallvec::SmallVec;
use std::{cmp::Ordering, convert::TryFrom, fmt::Debug, ops::Index};
use std::{cmp::Ordering, fmt::Debug, ops::Index};
/// A vector clock index, this is associated with a thread id
/// but in some cases one vector index may be shared with