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 {
279
279
return None ;
280
280
}
281
281
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 ( )
283
283
|| codegen_fn_attrs
284
284
. flags
285
285
. contains ( CodegenFnAttrFlags :: USED_COMPILER )
Original file line number Diff line number Diff line change @@ -134,8 +134,7 @@ pub fn iter_exported_symbols<'tcx>(
134
134
for def_id in crate_items. definitions ( ) {
135
135
let exported = tcx. def_kind ( def_id) . has_codegen_attrs ( ) && {
136
136
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 ( )
139
138
|| codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_COMPILER )
140
139
|| codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_LINKER )
141
140
} ;
You can’t perform that action at this time.
0 commit comments