Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b1e9379

Browse files
Formatted use statements for fewer lines
1 parent 7995d5c commit b1e9379

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

compiler/rustc_typeck/src/check/fn_ctxt.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
use super::callee::{self, DeferredCallResolution};
22
use super::coercion::{CoerceMany, DynamicCoerceMany};
3-
use super::method::{MethodCallee, SelfSource};
3+
use super::method::{self, MethodCallee, SelfSource};
44
use super::Expectation::*;
55
use super::TupleArgumentsFlag::*;
66
use super::{
7-
method, potentially_plural_count, struct_span_err, BreakableCtxt, Diverges,
8-
EnclosingBreakables, Expectation, FallbackMode, Inherited, LocalTy, Needs, TupleArgumentsFlag,
9-
UnsafetyState,
7+
potentially_plural_count, struct_span_err, BreakableCtxt, Diverges, EnclosingBreakables,
8+
Expectation, FallbackMode, Inherited, LocalTy, Needs, TupleArgumentsFlag, UnsafetyState,
109
};
1110
use crate::astconv::{
1211
AstConv, ExplicitLateBound, GenericArgCountMismatch, GenericArgCountResult, PathSeg,
@@ -23,12 +22,11 @@ use rustc_hir::def::{CtorOf, DefKind, Res};
2322
use rustc_hir::def_id::DefId;
2423
use rustc_hir::lang_items::LangItem;
2524
use rustc_hir::{ExprKind, GenericArg, ItemKind, Node, QPath};
26-
use rustc_infer::infer;
2725
use rustc_infer::infer::canonical::{Canonical, OriginalQueryValues, QueryResponse};
2826
use rustc_infer::infer::error_reporting::TypeAnnotationNeeded::E0282;
2927
use rustc_infer::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
3028
use rustc_infer::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind};
31-
use rustc_infer::infer::{InferOk, InferResult};
29+
use rustc_infer::infer::{self, InferOk, InferResult};
3230
use rustc_middle::hir::map::blocks::FnLikeNode;
3331
use rustc_middle::ty::adjustment::{
3432
Adjust, Adjustment, AllowTwoPhase, AutoBorrow, AutoBorrowMutability,
@@ -41,8 +39,7 @@ use rustc_middle::ty::{
4139
self, AdtKind, CanonicalUserType, Const, DefIdTree, GenericParamDefKind, ToPolyTraitRef,
4240
ToPredicate, Ty, TyCtxt, UserType,
4341
};
44-
use rustc_session::lint;
45-
use rustc_session::Session;
42+
use rustc_session::{lint, Session};
4643
use rustc_span::hygiene::DesugaringKind;
4744
use rustc_span::source_map::{original_sp, DUMMY_SP};
4845
use rustc_span::symbol::{kw, sym, Ident};

0 commit comments

Comments
 (0)