@@ -25,7 +25,7 @@ use crate::lint::levels::{LintLevelSets, LintLevelsBuilder};
25
25
use crate :: middle:: privacy:: AccessLevels ;
26
26
use crate :: rustc_serialize:: { Decoder , Decodable , Encoder , Encodable } ;
27
27
use crate :: session:: { config, early_error, Session } ;
28
- use crate :: ty:: { self , print:: Printer , subst:: Kind , TyCtxt , Ty } ;
28
+ use crate :: ty:: { self , print:: Printer , subst:: { Kind , SubstsRef } , TyCtxt , Ty } ;
29
29
use crate :: ty:: layout:: { LayoutError , LayoutOf , TyLayout } ;
30
30
use crate :: util:: nodemap:: FxHashMap ;
31
31
use crate :: util:: common:: time;
@@ -822,7 +822,7 @@ impl<'a, 'tcx> LateContext<'a, 'tcx> {
822
822
) -> Result < Self :: Path , Self :: Error > {
823
823
if trait_ref. is_none ( ) {
824
824
if let ty:: Adt ( def, substs) = self_ty. sty {
825
- return self . print_def_path ( def. did , & substs) ;
825
+ return self . print_def_path ( def. did , substs) ;
826
826
}
827
827
}
828
828
@@ -880,7 +880,7 @@ impl<'a, 'tcx> LateContext<'a, 'tcx> {
880
880
}
881
881
882
882
AbsolutePathPrinter { tcx : self . tcx }
883
- . print_def_path ( def_id, & [ ] )
883
+ . print_def_path ( def_id, SubstsRef :: empty ( ) )
884
884
. unwrap ( )
885
885
}
886
886
}
0 commit comments