|
1 | | -use super::mappings::{AddressableAst, AddressableHir, Emission, PathAst}; |
| 1 | +use super::mappings::Emission; |
2 | 2 | use crate::generated::{self}; |
3 | 3 | use crate::rust_analyzer::FileSemanticInformation; |
4 | 4 | use crate::trap::{DiagnosticSeverity, TrapFile, TrapId}; |
5 | 5 | use crate::trap::{Label, TrapClass}; |
6 | | -use itertools::Either; |
7 | | -use ra_ap_base_db::{CrateOrigin, EditionedFileId}; |
| 6 | +use ra_ap_base_db::EditionedFileId; |
8 | 7 | use ra_ap_hir::db::ExpandDatabase; |
9 | | -use ra_ap_hir::{ |
10 | | - Adt, Crate, ItemContainer, Module, ModuleDef, PathResolution, Semantics, Type, Variant, |
11 | | -}; |
12 | | -use ra_ap_hir_def::ModuleId; |
13 | | -use ra_ap_hir_def::type_ref::Mutability; |
| 8 | +use ra_ap_hir::Semantics; |
14 | 9 | use ra_ap_hir_expand::{ExpandResult, ExpandTo, InFile}; |
15 | 10 | use ra_ap_ide_db::RootDatabase; |
16 | 11 | use ra_ap_ide_db::line_index::{LineCol, LineIndex}; |
17 | 12 | use ra_ap_parser::SyntaxKind; |
18 | 13 | use ra_ap_span::TextSize; |
19 | | -use ra_ap_syntax::ast::{HasAttrs, HasName}; |
| 14 | +use ra_ap_syntax::ast::HasAttrs; |
20 | 15 | use ra_ap_syntax::{ |
21 | 16 | AstNode, NodeOrToken, SyntaxElementChildren, SyntaxError, SyntaxNode, SyntaxToken, TextRange, |
22 | 17 | ast, |
|
0 commit comments