Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit 5115b2a

Browse files
stepanchegfacebook-github-bot
authored andcommitted
One import per line
Reviewed By: ndmitchell Differential Revision: D37285539 fbshipit-source-id: 2aaee71f9f3a3f7e26da858182369674463cca7f
1 parent 6972b5d commit 5115b2a

File tree

2 files changed

+43
-22
lines changed

2 files changed

+43
-22
lines changed

gazebo_lint/src/clippy.rs

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,28 @@
1212

1313
use std::mem;
1414

15-
use rustc_hir::{
16-
self, def,
17-
def::{DefKind, Res},
18-
def_id::{DefId, CRATE_DEF_INDEX},
19-
Expr, ExprKind, Impl, Item, ItemKind,
20-
};
15+
use rustc_hir::def;
16+
use rustc_hir::def::DefKind;
17+
use rustc_hir::def::Res;
18+
use rustc_hir::def_id::DefId;
19+
use rustc_hir::def_id::CRATE_DEF_INDEX;
20+
use rustc_hir::Expr;
21+
use rustc_hir::ExprKind;
22+
use rustc_hir::Impl;
23+
use rustc_hir::Item;
24+
use rustc_hir::ItemKind;
25+
use rustc_hir::{self};
2126
use rustc_infer::infer::TyCtxtInferExt;
2227
use rustc_lint::LateContext;
23-
use rustc_middle::{
24-
traits,
25-
ty::{subst::GenericArg, Ty, TyKind},
26-
};
27-
use rustc_span::{self, symbol::Symbol, Span};
28-
use rustc_trait_selection::traits::{
29-
predicate_for_trait_def, query::evaluate_obligation::InferCtxtExt,
30-
};
28+
use rustc_middle::traits;
29+
use rustc_middle::ty::subst::GenericArg;
30+
use rustc_middle::ty::Ty;
31+
use rustc_middle::ty::TyKind;
32+
use rustc_span::symbol::Symbol;
33+
use rustc_span::Span;
34+
use rustc_span::{self};
35+
use rustc_trait_selection::traits::predicate_for_trait_def;
36+
use rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt;
3137
use rustc_typeck::hir_ty_to_ty;
3238
use smallvec::SmallVec;
3339

gazebo_lint/src/lib.rs

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,29 @@ mod clippy;
5353

5454
use rustc_driver::plugin::Registry;
5555
use rustc_errors::Applicability;
56-
use rustc_hir::{
57-
def::{DefKind, Res},
58-
def_id::DefId,
59-
Expr, ExprKind, GenericArg, GenericArgs, Item, ItemKind, Path, PathSegment, QPath, Ty, UseKind,
60-
};
61-
use rustc_lint::{LateContext, LateLintPass, Lint, LintContext, LintId};
62-
use rustc_middle::ty::{fold::TypeFoldable, TyKind};
63-
use rustc_span::{Span, Symbol};
56+
use rustc_hir::def::DefKind;
57+
use rustc_hir::def::Res;
58+
use rustc_hir::def_id::DefId;
59+
use rustc_hir::Expr;
60+
use rustc_hir::ExprKind;
61+
use rustc_hir::GenericArg;
62+
use rustc_hir::GenericArgs;
63+
use rustc_hir::Item;
64+
use rustc_hir::ItemKind;
65+
use rustc_hir::Path;
66+
use rustc_hir::PathSegment;
67+
use rustc_hir::QPath;
68+
use rustc_hir::Ty;
69+
use rustc_hir::UseKind;
70+
use rustc_lint::LateContext;
71+
use rustc_lint::LateLintPass;
72+
use rustc_lint::Lint;
73+
use rustc_lint::LintContext;
74+
use rustc_lint::LintId;
75+
use rustc_middle::ty::fold::TypeFoldable;
76+
use rustc_middle::ty::TyKind;
77+
use rustc_span::Span;
78+
use rustc_span::Symbol;
6479

6580
use crate::clippy::unpack_non_local;
6681

0 commit comments

Comments
 (0)