Skip to content

Commit 79f3ae4

Browse files
committed
add a flag to codegen fn attrs for foreign items
1 parent 20e3f49 commit 79f3ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/missing_inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,5 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
190190
/// and a rustc warning would be triggered, see #15301
191191
fn fn_is_externally_exported(cx: &LateContext<'_>, def_id: DefId) -> bool {
192192
let attrs = cx.tcx.codegen_fn_attrs(def_id);
193-
attrs.contains_extern_indicator(cx.tcx, def_id)
193+
attrs.contains_extern_indicator()
194194
}

0 commit comments

Comments
 (0)