@@ -27,7 +27,7 @@ use rustc_middle::ty::codec::TyEncoder;
27
27
use rustc_middle:: ty:: fast_reject:: { self , TreatParams } ;
28
28
use rustc_middle:: { bug, span_bug} ;
29
29
use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder , opaque} ;
30
- use rustc_session:: config:: { CrateType , OptLevel , TargetModifier } ;
30
+ use rustc_session:: config:: { CrateType , TargetModifier } ;
31
31
use rustc_span:: hygiene:: HygieneEncodeContext ;
32
32
use rustc_span:: {
33
33
ByteSymbol , ExternalSource , FileName , SourceFile , SpanData , SpanEncoder , StableSourceFileId ,
@@ -1822,21 +1822,6 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1822
1822
record ! ( self . tables. mir_coroutine_witnesses[ def_id. to_def_id( ) ] <- witnesses) ;
1823
1823
}
1824
1824
}
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
- }
1840
1825
}
1841
1826
1842
1827
#[ instrument( level = "debug" , skip( self ) ) ]
0 commit comments