1
Fork 0

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 :/
This commit is contained in:
Matthias Krüger 2022-12-11 09:51:57 +01:00 committed by GitHub
commit 2daa3bcbc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 24 additions and 98 deletions

View file

@ -30,7 +30,6 @@ mod test;
mod util;
use std::borrow::Borrow;
use std::convert::TryFrom;
use std::mem;
impl<'a, 'tcx> Builder<'a, 'tcx> {

View file

@ -7,7 +7,6 @@ use rustc_middle::thir::*;
use rustc_middle::ty;
use rustc_middle::ty::TypeVisitable;
use smallvec::SmallVec;
use std::convert::TryInto;
impl<'a, 'tcx> Builder<'a, 'tcx> {
pub(crate) fn field_match_pairs<'pat>(

View file

@ -45,7 +45,7 @@
use std::cell::Cell;
use std::cmp::{self, max, min, Ordering};
use std::fmt;
use std::iter::{once, IntoIterator};
use std::iter::once;
use std::ops::RangeInclusive;
use smallvec::{smallvec, SmallVec};