about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas-Baron <nicholas.baron.ten@gmail.com>2020-09-19 12:31:48 -0700
committerNicholas-Baron <nicholas.baron.ten@gmail.com>2020-09-20 18:58:32 -0700
commitb1e93796797624f33ea4f0f8563d002f28234d7d (patch)
treec809bd6431004bc21ee78ddac5455253216d6ea1
parent7995d5cda4cd5154def40770f4527e7867f37c1a (diff)
downloadrust-b1e93796797624f33ea4f0f8563d002f28234d7d.tar.gz
rust-b1e93796797624f33ea4f0f8563d002f28234d7d.zip
Formatted use statements for fewer lines
-rw-r--r--compiler/rustc_typeck/src/check/fn_ctxt.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/compiler/rustc_typeck/src/check/fn_ctxt.rs b/compiler/rustc_typeck/src/check/fn_ctxt.rs
index f7046468511..2a906f5b6ed 100644
--- a/compiler/rustc_typeck/src/check/fn_ctxt.rs
+++ b/compiler/rustc_typeck/src/check/fn_ctxt.rs
@@ -1,12 +1,11 @@
 use super::callee::{self, DeferredCallResolution};
 use super::coercion::{CoerceMany, DynamicCoerceMany};
-use super::method::{MethodCallee, SelfSource};
+use super::method::{self, MethodCallee, SelfSource};
 use super::Expectation::*;
 use super::TupleArgumentsFlag::*;
 use super::{
-    method, potentially_plural_count, struct_span_err, BreakableCtxt, Diverges,
-    EnclosingBreakables, Expectation, FallbackMode, Inherited, LocalTy, Needs, TupleArgumentsFlag,
-    UnsafetyState,
+    potentially_plural_count, struct_span_err, BreakableCtxt, Diverges, EnclosingBreakables,
+    Expectation, FallbackMode, Inherited, LocalTy, Needs, TupleArgumentsFlag, UnsafetyState,
 };
 use crate::astconv::{
     AstConv, ExplicitLateBound, GenericArgCountMismatch, GenericArgCountResult, PathSeg,
@@ -23,12 +22,11 @@ use rustc_hir::def::{CtorOf, DefKind, Res};
 use rustc_hir::def_id::DefId;
 use rustc_hir::lang_items::LangItem;
 use rustc_hir::{ExprKind, GenericArg, ItemKind, Node, QPath};
-use rustc_infer::infer;
 use rustc_infer::infer::canonical::{Canonical, OriginalQueryValues, QueryResponse};
 use rustc_infer::infer::error_reporting::TypeAnnotationNeeded::E0282;
 use rustc_infer::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
 use rustc_infer::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind};
-use rustc_infer::infer::{InferOk, InferResult};
+use rustc_infer::infer::{self, InferOk, InferResult};
 use rustc_middle::hir::map::blocks::FnLikeNode;
 use rustc_middle::ty::adjustment::{
     Adjust, Adjustment, AllowTwoPhase, AutoBorrow, AutoBorrowMutability,
@@ -41,8 +39,7 @@ use rustc_middle::ty::{
     self, AdtKind, CanonicalUserType, Const, DefIdTree, GenericParamDefKind, ToPolyTraitRef,
     ToPredicate, Ty, TyCtxt, UserType,
 };
-use rustc_session::lint;
-use rustc_session::Session;
+use rustc_session::{lint, Session};
 use rustc_span::hygiene::DesugaringKind;
 use rustc_span::source_map::{original_sp, DUMMY_SP};
 use rustc_span::symbol::{kw, sym, Ident};