From 1834bae5b86c54ed9dece26e82436919d59e6cb7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 4 Jul 2019 23:05:17 +0300 Subject: allow rustfmt to reorder imports This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway --- crates/ra_hir/src/ty/infer.rs | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'crates/ra_hir/src/ty/infer.rs') diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 2c05ca734..a2dc92370 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs @@ -15,38 +15,37 @@ use std::borrow::Cow; use std::iter::repeat; +use std::mem; use std::ops::Index; use std::sync::Arc; -use std::mem; -use ena::unify::{InPlaceUnificationTable, UnifyKey, UnifyValue, NoError}; +use ena::unify::{InPlaceUnificationTable, NoError, UnifyKey, UnifyValue}; use rustc_hash::FxHashMap; use ra_arena::map::ArenaMap; use ra_prof::profile; use test_utils::tested_by; +use super::{ + autoderef, method_resolution, op, primitive, + traits::{Guidance, Obligation, Solution}, + ApplicationTy, CallableDef, Substs, TraitRef, Ty, TypableDef, TypeCtor, +}; use crate::{ - Function, StructField, Path, Name, FnData, AdtDef, ConstData, HirDatabase, - DefWithBody, ImplItem, - type_ref::{TypeRef, Mutability}, + adt::VariantDef, + diagnostics::DiagnosticSink, expr::{ - Body, Expr, BindingAnnotation, Literal, ExprId, Pat, PatId, UnaryOp, BinaryOp, Statement, - FieldPat, Array, self, + self, Array, BinaryOp, BindingAnnotation, Body, Expr, ExprId, FieldPat, Literal, Pat, + PatId, Statement, UnaryOp, }, generics::{GenericParams, HasGenericParams}, - path::{GenericArgs, GenericArg}, - ModuleDef, - adt::VariantDef, - resolve::{Resolver, Resolution}, nameres::Namespace, + path::{GenericArg, GenericArgs}, + resolve::{Resolution, Resolver}, ty::infer::diagnostics::InferenceDiagnostic, - diagnostics::DiagnosticSink, -}; -use super::{ - Ty, TypableDef, Substs, primitive, op, ApplicationTy, TypeCtor, CallableDef, TraitRef, - traits::{Solution, Obligation, Guidance}, - method_resolution, autoderef, + type_ref::{Mutability, TypeRef}, + AdtDef, ConstData, DefWithBody, FnData, Function, HirDatabase, ImplItem, ModuleDef, Name, Path, + StructField, }; mod unify; @@ -1415,10 +1414,10 @@ impl Expectation { mod diagnostics { use crate::{ - expr::ExprId, diagnostics::{DiagnosticSink, NoSuchField}, - HirDatabase, Function, HasSource, -}; + expr::ExprId, + Function, HasSource, HirDatabase, + }; #[derive(Debug, PartialEq, Eq, Clone)] pub(super) enum InferenceDiagnostic { -- cgit v1.2.3