File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
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 ( )
282
+ if codegen_fn_attrs. contains_extern_indicator ( tcx , local_def_id . into ( ) )
283
283
|| codegen_fn_attrs
284
284
. flags
285
285
. contains ( CodegenFnAttrFlags :: USED_COMPILER )
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ pub fn iter_exported_symbols<'tcx>(
132
132
for def_id in crate_items. definitions ( ) {
133
133
let exported = tcx. def_kind ( def_id) . has_codegen_attrs ( ) && {
134
134
let codegen_attrs = tcx. codegen_fn_attrs ( def_id) ;
135
- codegen_attrs. contains_extern_indicator ( )
135
+ codegen_attrs. contains_extern_indicator ( tcx , def_id . into ( ) )
136
136
|| codegen_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_STD_INTERNAL_SYMBOL )
137
137
|| codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_COMPILER )
138
138
|| codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_LINKER )
You can’t perform that action at this time.
0 commit comments