Skip to content

Lint calls to #[no_mangle] functions that don't have #[inline(never)] #3070

Open
@oli-obk

Description

@oli-obk

Noticed when trying to debug rustc. The rust_panic function is inlined sometimes which makes it impossible to set a breakpoint on it.

If the #[no_mangle] function is just for C and never called from Rust it should be fine (though not sure how llvm copes on that and maybe still inlines it, but that seems ok, since you might even have wanted that behaviour).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions