make no_mangle explicit on foreign items

This commit is contained in:
Jana Dönszelmann 2025-07-29 20:51:46 +02:00
parent a5469b8b4a
commit 68c1574f5f

View file

@ -190,5 +190,5 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
/// and a rustc warning would be triggered, see #15301
fn fn_is_externally_exported(cx: &LateContext<'_>, def_id: DefId) -> bool {
let attrs = cx.tcx.codegen_fn_attrs(def_id);
attrs.contains_extern_indicator()
attrs.contains_extern_indicator(cx.tcx, def_id)
}