@@ -25,7 +25,7 @@ use crate::lint::levels::{LintLevelSets, LintLevelsBuilder};
2525use crate :: middle:: privacy:: AccessLevels ;
2626use crate :: rustc_serialize:: { Decoder , Decodable , Encoder , Encodable } ;
2727use 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 } ;
2929use crate :: ty:: layout:: { LayoutError , LayoutOf , TyLayout } ;
3030use crate :: util:: nodemap:: FxHashMap ;
3131use crate :: util:: common:: time;
@@ -822,7 +822,7 @@ impl<'a, 'tcx> LateContext<'a, 'tcx> {
822822 ) -> Result < Self :: Path , Self :: Error > {
823823 if trait_ref. is_none ( ) {
824824 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) ;
826826 }
827827 }
828828
@@ -880,7 +880,7 @@ impl<'a, 'tcx> LateContext<'a, 'tcx> {
880880 }
881881
882882 AbsolutePathPrinter { tcx : self . tcx }
883- . print_def_path ( def_id, & [ ] )
883+ . print_def_path ( def_id, SubstsRef :: empty ( ) )
884884 . unwrap ( )
885885 }
886886}
0 commit comments