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 {
279279 return None ;
280280 }
281281 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 ( ) )
283283 || codegen_fn_attrs
284284 . flags
285285 . contains ( CodegenFnAttrFlags :: USED_COMPILER )
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ pub fn iter_exported_symbols<'tcx>(
132132 for def_id in crate_items. definitions ( ) {
133133 let exported = tcx. def_kind ( def_id) . has_codegen_attrs ( ) && {
134134 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 ( ) )
136136 || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_STD_INTERNAL_SYMBOL )
137137 || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_COMPILER )
138138 || codegen_attrs. flags . contains ( CodegenFnAttrFlags :: USED_LINKER )
You can’t perform that action at this time.
0 commit comments