diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-11 09:51:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-11 09:51:57 +0100 |
| commit | 2daa3bcbc2c2dcd05312a176cf0bc50713dffacd (patch) | |
| tree | 4a6e84d33945466cddfaf9ffc1265cf7142fc058 /compiler/rustc_session/src | |
| parent | 12c2fd294fd273ad3ab77daf0ff8e63503607d65 (diff) | |
| parent | 9bc69925cb4a1391a9a41411c56ae059877bf8fb (diff) | |
| download | rust-2daa3bcbc2c2dcd05312a176cf0bc50713dffacd.tar.gz rust-2daa3bcbc2c2dcd05312a176cf0bc50713dffacd.zip | |
Rollup merge of #105537 - kadiwa4:remove_some_imports, r=fee1-dead
compiler: remove unnecessary imports and qualified paths Some of these imports were necessary before Edition 2021, others were already in the prelude. I hope it's fine that this PR is so spread-out across files :/
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_session/src/filesearch.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 7a20100fd31..6de564a3a06 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -32,7 +32,7 @@ use std::collections::btree_map::{ use std::collections::{BTreeMap, BTreeSet}; use std::fmt; use std::hash::Hash; -use std::iter::{self, FromIterator}; +use std::iter; use std::path::{Path, PathBuf}; use std::str::{self, FromStr}; diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs index 1b66773be6f..1855a49c1ec 100644 --- a/compiler/rustc_session/src/filesearch.rs +++ b/compiler/rustc_session/src/filesearch.rs @@ -3,7 +3,6 @@ use smallvec::{smallvec, SmallVec}; use std::env; use std::fs; -use std::iter::FromIterator; use std::path::{Path, PathBuf}; use crate::search_paths::{PathKind, SearchPath}; |
