@@ -26,7 +26,7 @@ use rustc_middle::ty::fast_reject::{self, TreatParams};
2626use rustc_middle:: ty:: { AssocItemContainer , SymbolName } ;
2727use rustc_middle:: { bug, span_bug} ;
2828use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder , opaque} ;
29- use rustc_session:: config:: { CrateType , OptLevel , TargetModifier } ;
29+ use rustc_session:: config:: { CrateType , TargetModifier } ;
3030use rustc_span:: hygiene:: HygieneEncodeContext ;
3131use rustc_span:: {
3232 ExternalSource , FileName , SourceFile , SpanData , SpanEncoder , StableSourceFileId , SyntaxContext ,
@@ -1778,21 +1778,6 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
17781778 record ! ( self . tables. mir_coroutine_witnesses[ def_id. to_def_id( ) ] <- witnesses) ;
17791779 }
17801780 }
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- }
17961781 }
17971782
17981783 #[ instrument( level = "debug" , skip( self ) ) ]
0 commit comments