@@ -26,7 +26,7 @@ use rustc_middle::ty::fast_reject::{self, TreatParams};
26
26
use rustc_middle:: ty:: { AssocItemContainer , SymbolName } ;
27
27
use rustc_middle:: { bug, span_bug} ;
28
28
use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder , opaque} ;
29
- use rustc_session:: config:: { CrateType , OptLevel , TargetModifier } ;
29
+ use rustc_session:: config:: { CrateType , TargetModifier } ;
30
30
use rustc_span:: hygiene:: HygieneEncodeContext ;
31
31
use rustc_span:: {
32
32
ExternalSource , FileName , SourceFile , SpanData , SpanEncoder , StableSourceFileId , SyntaxContext ,
@@ -1778,21 +1778,6 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1778
1778
record ! ( self . tables. mir_coroutine_witnesses[ def_id. to_def_id( ) ] <- witnesses) ;
1779
1779
}
1780
1780
}
1781
-
1782
- // Encode all the deduced parameter attributes for everything that has MIR, even for items
1783
- // that can't be inlined. But don't if we aren't optimizing in non-incremental mode, to
1784
- // save the query traffic.
1785
- if tcx. sess . opts . output_types . should_codegen ( )
1786
- && tcx. sess . opts . optimize != OptLevel :: No
1787
- && tcx. sess . opts . incremental . is_none ( )
1788
- {
1789
- for & local_def_id in tcx. mir_keys ( ( ) ) {
1790
- if let DefKind :: AssocFn | DefKind :: Fn = tcx. def_kind ( local_def_id) {
1791
- record_array ! ( self . tables. deduced_param_attrs[ local_def_id. to_def_id( ) ] <-
1792
- self . tcx. deduced_param_attrs( local_def_id. to_def_id( ) ) ) ;
1793
- }
1794
- }
1795
- }
1796
1781
}
1797
1782
1798
1783
#[ instrument( level = "debug" , skip( self ) ) ]
0 commit comments