@@ -813,7 +813,7 @@ impl<'a, 'tcx> Context<'a, 'tcx> {
813
813
let disambiguator = CharonDisambiguator :: new ( data. disambiguator as usize ) ;
814
814
use rustc_hir:: definitions:: DefPathData ;
815
815
match & data. data {
816
- DefPathData :: TypeNs ( symbol) => {
816
+ DefPathData :: TypeNs ( Some ( symbol) ) => {
817
817
error_assert ! ( self , span, data. disambiguator == 0 ) ; // Sanity check
818
818
name. push ( CharonPathElem :: Ident ( symbol. to_string ( ) , disambiguator) ) ;
819
819
}
@@ -956,7 +956,7 @@ impl<'a, 'tcx> Context<'a, 'tcx> {
956
956
let disambiguator = CharonDisambiguator :: new ( data. disambiguator as usize ) ;
957
957
use rustc_hir:: definitions:: DefPathData ;
958
958
match & data. data {
959
- DefPathData :: TypeNs ( symbol) => {
959
+ DefPathData :: TypeNs ( Some ( symbol) ) => {
960
960
error_assert ! ( self , span, data. disambiguator == 0 ) ; // Sanity check
961
961
name. push ( CharonPathElem :: Ident ( symbol. to_string ( ) , disambiguator) ) ;
962
962
}
@@ -1063,7 +1063,7 @@ impl<'a, 'tcx> Context<'a, 'tcx> {
1063
1063
let disambiguator = CharonDisambiguator :: new ( data. disambiguator as usize ) ;
1064
1064
use rustc_hir:: definitions:: DefPathData ;
1065
1065
match & data. data {
1066
- DefPathData :: TypeNs ( symbol) => {
1066
+ DefPathData :: TypeNs ( Some ( symbol) ) => {
1067
1067
error_assert ! ( self , span, data. disambiguator == 0 ) ; // Sanity check
1068
1068
name. push ( CharonPathElem :: Ident ( symbol. to_string ( ) , disambiguator) ) ;
1069
1069
}
0 commit comments