File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/librustc_typeck/check Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use rustc::ty::fold::{TypeFoldable, TypeFolder};
9
9
use rustc:: ty:: { self , Ty , TyCtxt } ;
10
10
use rustc_data_structures:: sync:: Lrc ;
11
11
use rustc_hir as hir;
12
- use rustc_hir:: def_id:: { DefId , DefIdSet , DefIndex } ;
12
+ use rustc_hir:: def_id:: { DefId , DefIdSet } ;
13
13
use rustc_hir:: intravisit:: { self , NestedVisitorMap , Visitor } ;
14
14
use rustc_infer:: infer:: error_reporting:: TypeAnnotationNeeded :: E0282 ;
15
15
use rustc_infer:: infer:: InferCtxt ;
@@ -597,13 +597,6 @@ impl Locatable for Span {
597
597
}
598
598
}
599
599
600
- impl Locatable for DefIndex {
601
- fn to_span ( & self , tcx : TyCtxt < ' _ > ) -> Span {
602
- let hir_id = tcx. hir ( ) . def_index_to_hir_id ( * self ) ;
603
- tcx. hir ( ) . span ( hir_id)
604
- }
605
- }
606
-
607
600
impl Locatable for hir:: HirId {
608
601
fn to_span ( & self , tcx : TyCtxt < ' _ > ) -> Span {
609
602
tcx. hir ( ) . span ( * self )
You can’t perform that action at this time.
0 commit comments