Tracking issue for inaccessible_extern_crate
compatibility lint
#36886
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
B-unstable
Blocker: Implemented in the nightly compiler and unstable.
Uh oh!
There was an error while loading. Please reload this page.
What is this lint about
Private items cannot be used outside of their module
, however, older versions of the compiler erroneously ignored privacy on extern crate items and accepted code like this without errors:
#31362 fixed this oversight.
How to fix this warning/error
Mark the
extern crate
aspub
if it's intended to be used from outside of the module it's defined in.Current status
inaccessible_extern_crate
lint as warn-by-defaultinaccessible_extern_crate
lint deny-by-defaultinaccessible_extern_crate
lint a hard errorThe text was updated successfully, but these errors were encountered: