Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oli-obk opened this issue Aug 22, 2018 · 0 comments
Open

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

oli-obk opened this issue Aug 22, 2018 · 0 comments
Labels
A-lint Area: New lints

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Aug 22, 2018

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

No branches or pull requests

1 participant