|
10 | 10 | //! checks for attributes |
11 | 11 |
|
12 | 12 | use crate::reexport::*; |
13 | | -use crate::rustc::hir::*; |
14 | | -use crate::rustc::lint::{ |
15 | | - CheckLintNameResult, EarlyContext, EarlyLintPass, LateContext, LateLintPass, LintArray, LintContext, LintPass, |
16 | | -}; |
17 | | -use crate::rustc::ty::{self, TyCtxt}; |
18 | | -use crate::rustc::{declare_tool_lint, lint_array}; |
19 | | -use crate::rustc_errors::Applicability; |
20 | | -use crate::syntax::ast::{AttrStyle, Attribute, Lit, LitKind, MetaItemKind, NestedMetaItem, NestedMetaItemKind}; |
21 | | -use crate::syntax::source_map::Span; |
22 | 13 | use crate::utils::{ |
23 | 14 | in_macro, last_line_of_span, match_def_path, opt_def_id, paths, snippet_opt, span_lint, span_lint_and_sugg, |
24 | 15 | span_lint_and_then, without_block_comments, |
25 | 16 | }; |
26 | 17 | use if_chain::if_chain; |
| 18 | +use rustc::hir::*; |
| 19 | +use rustc::lint::{ |
| 20 | + CheckLintNameResult, EarlyContext, EarlyLintPass, LateContext, LateLintPass, LintArray, LintContext, LintPass, |
| 21 | +}; |
| 22 | +use rustc::ty::{self, TyCtxt}; |
| 23 | +use rustc::{declare_tool_lint, lint_array}; |
| 24 | +use rustc_errors::Applicability; |
27 | 25 | use semver::Version; |
| 26 | +use syntax::ast::{AttrStyle, Attribute, Lit, LitKind, MetaItemKind, NestedMetaItem, NestedMetaItemKind}; |
| 27 | +use syntax::source_map::Span; |
28 | 28 |
|
29 | 29 | /// **What it does:** Checks for items annotated with `#[inline(always)]`, |
30 | 30 | /// unless the annotated function is empty or simply panics. |
|
0 commit comments