@@ -24,7 +24,6 @@ use rustc_middle::arena::ArenaAllocatable;
2424use rustc_middle:: metadata:: ModChild ;
2525use rustc_middle:: middle:: exported_symbols:: { ExportedSymbol , SymbolExportLevel } ;
2626use rustc_middle:: middle:: stability:: DeprecationEntry ;
27- use rustc_middle:: mir;
2827use rustc_middle:: mir:: interpret:: { AllocDecodingSession , AllocDecodingState } ;
2928use rustc_middle:: thir;
3029use rustc_middle:: ty:: codec:: TyDecoder ;
@@ -1171,21 +1170,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
11711170 }
11721171 }
11731172
1174- fn mir_const_qualif ( self , id : DefIndex ) -> mir:: ConstQualifs {
1175- match self . kind ( id) {
1176- EntryKind :: AnonConst ( qualif, _)
1177- | EntryKind :: Const ( qualif, _)
1178- | EntryKind :: AssocConst (
1179- AssocContainer :: ImplDefault
1180- | AssocContainer :: ImplFinal
1181- | AssocContainer :: TraitWithDefault ,
1182- qualif,
1183- _,
1184- ) => qualif,
1185- _ => bug ! ( "mir_const_qualif: unexpected kind" ) ,
1186- }
1187- }
1188-
11891173 fn get_fn_has_self_parameter ( self , id : DefIndex ) -> bool {
11901174 match self . kind ( id) {
11911175 EntryKind :: AssocFn ( data) => data. decode ( self ) . has_self ,
@@ -1209,7 +1193,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
12091193 let name = self . item_name ( id) ;
12101194
12111195 let ( kind, container, has_self) = match self . kind ( id) {
1212- EntryKind :: AssocConst ( container, _, _ ) => ( ty:: AssocKind :: Const , container, false ) ,
1196+ EntryKind :: AssocConst ( container, _) => ( ty:: AssocKind :: Const , container, false ) ,
12131197 EntryKind :: AssocFn ( data) => {
12141198 let data = data. decode ( self ) ;
12151199 ( ty:: AssocKind :: Fn , data. container , data. has_self )
@@ -1429,9 +1413,9 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
14291413
14301414 fn get_rendered_const ( self , id : DefIndex ) -> String {
14311415 match self . kind ( id) {
1432- EntryKind :: AnonConst ( _ , data)
1433- | EntryKind :: Const ( _ , data)
1434- | EntryKind :: AssocConst ( _, _ , data) => data. decode ( self ) . 0 ,
1416+ EntryKind :: AnonConst ( data)
1417+ | EntryKind :: Const ( data)
1418+ | EntryKind :: AssocConst ( _, data) => data. decode ( self ) . 0 ,
14351419 _ => bug ! ( ) ,
14361420 }
14371421 }
0 commit comments