Need more helpful warning when "pub extern" function is not exported via "pub use" #49238
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm creating a bunch of
#[no_mangle] pub extern fn
that will be callable from C code. Sometimes I forget to put them in my toplevellib.rs
aspub use
. This is the warning I get:At first sight, that function is already
pub
! The warning should say that I need to export it from the crate viapub use
.The text was updated successfully, but these errors were encountered: