@@ -27,7 +27,7 @@ use rustc_middle::ty::codec::TyEncoder;
2727use rustc_middle:: ty:: fast_reject:: { self , TreatParams } ;
2828use rustc_middle:: { bug, span_bug} ;
2929use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder , opaque} ;
30- use rustc_session:: config:: { CrateType , OptLevel , TargetModifier } ;
30+ use rustc_session:: config:: { CrateType , TargetModifier } ;
3131use rustc_span:: hygiene:: HygieneEncodeContext ;
3232use rustc_span:: {
3333 ByteSymbol , ExternalSource , FileName , SourceFile , SpanData , SpanEncoder , StableSourceFileId ,
@@ -1822,21 +1822,6 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
18221822 record ! ( self . tables. mir_coroutine_witnesses[ def_id. to_def_id( ) ] <- witnesses) ;
18231823 }
18241824 }
1825-
1826- // Encode all the deduced parameter attributes for everything that has MIR, even for items
1827- // that can't be inlined. But don't if we aren't optimizing in non-incremental mode, to
1828- // save the query traffic.
1829- if tcx. sess . opts . output_types . should_codegen ( )
1830- && tcx. sess . opts . optimize != OptLevel :: No
1831- && tcx. sess . opts . incremental . is_none ( )
1832- {
1833- for & local_def_id in tcx. mir_keys ( ( ) ) {
1834- if let DefKind :: AssocFn | DefKind :: Fn = tcx. def_kind ( local_def_id) {
1835- record_array ! ( self . tables. deduced_param_attrs[ local_def_id. to_def_id( ) ] <-
1836- self . tcx. deduced_param_attrs( local_def_id. to_def_id( ) ) ) ;
1837- }
1838- }
1839- }
18401825 }
18411826
18421827 #[ instrument( level = "debug" , skip( self ) ) ]
0 commit comments