-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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 toplevel lib.rs
as pub use
. This is the warning I get:
warning: function is marked #[no_mangle], but not exported
--> src/state.rs:436:1
|
436 | pub extern "C" fn rsvg_state_rust_parse_style_pair(
| ^
| |
| _help: try making it public: `pub `
At first sight, that function is already pub
! The warning should say that I need to export it from the crate via pub use
.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.