File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
279279 return None ;
280280 }
281281 let codegen_fn_attrs = tcx. codegen_fn_attrs ( local_def_id) ;
282- if codegen_fn_attrs. contains_extern_indicator ( tcx , local_def_id . into ( ) )
282+ if codegen_fn_attrs. contains_extern_indicator ( )
283283 || codegen_fn_attrs
284284 . flags
285285 . contains ( CodegenFnAttrFlags :: USED_COMPILER )
Original file line number Diff line number Diff line change @@ -134,8 +134,7 @@ pub fn iter_exported_symbols<'tcx>(
134134 for def_id in crate_items. definitions ( ) {
135135 let exported = tcx. def_kind ( def_id) . has_codegen_attrs ( ) && {
136136 let codegen_attrs = tcx. codegen_fn_attrs ( def_id) ;
137- codegen_attrs. contains_extern_indicator ( tcx, def_id. into ( ) )
138- || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_STD_INTERNAL_SYMBOL )
137+ codegen_attrs. contains_extern_indicator ( )
139138 || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_COMPILER )
140139 || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_LINKER )
141140 } ;
You can’t perform that action at this time.
0 commit comments