Skip to content

Commit 855af08

Browse files
committed
remove no longer needed imports
1 parent a57c301 commit 855af08

File tree

14 files changed

+2
-19
lines changed

14 files changed

+2
-19
lines changed

src/bin/miri.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern crate rustc_metadata;
99
extern crate rustc_middle;
1010
extern crate rustc_session;
1111

12-
use std::convert::TryFrom;
1312
use std::env;
1413
use std::num::NonZeroU64;
1514
use std::path::PathBuf;

src/eval.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Main evaluator loop and setting up the initial stack frame.
22
3-
use std::convert::TryFrom;
43
use std::ffi::OsStr;
54
use std::iter;
65

src/helpers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::convert::{TryFrom, TryInto};
21
use std::mem;
32
use std::num::NonZeroUsize;
43
use std::time::Duration;

src/shims/backtrace.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use rustc_middle::ty::layout::LayoutOf as _;
44
use rustc_middle::ty::{self, Instance};
55
use rustc_span::{BytePos, Loc, Symbol};
66
use rustc_target::{abi::Size, spec::abi::Abi};
7-
use std::convert::TryInto as _;
87

98
impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mir, 'tcx> {}
109
pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx> {

src/shims/env.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::convert::TryFrom;
21
use std::env;
32
use std::ffi::{OsStr, OsString};
43
use std::io::ErrorKind;

src/shims/foreign_items.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use std::{
2-
collections::hash_map::Entry,
3-
convert::{TryFrom, TryInto},
4-
iter,
5-
};
1+
use std::{collections::hash_map::Entry, iter};
62

73
use log::trace;
84

src/shims/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::convert::TryInto;
21
use std::iter;
32

43
use log::trace;

src/shims/os_str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::borrow::Cow;
2-
use std::convert::TryFrom;
32
use std::ffi::{OsStr, OsString};
43
use std::iter;
54
use std::path::{Path, PathBuf};

src/shims/posix/fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::borrow::Cow;
22
use std::collections::BTreeMap;
3-
use std::convert::{TryFrom, TryInto};
43
use std::fs::{
54
read_dir, remove_dir, remove_file, rename, DirBuilder, File, FileType, OpenOptions, ReadDir,
65
};

src/shims/posix/thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::convert::TryInto;
2-
31
use crate::*;
42
use rustc_middle::ty::layout::LayoutOf;
53
use rustc_target::spec::abi::Abi;

0 commit comments

Comments
 (0)