Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tracking issue for `legacy_constructor_visibility` compatibility lint #39207
What is this lint about
#38932 introduces new rules for privacy of tuple struct constructors. Constructor is a function automatically created by a tuple struct having the same name as the struct itself.
See RFC 1506 for more details.
With these new rules constructor function of a public
This change is done to make a struct with private fields being a tuple struct an implementation detail. So libraries can freely change it into non-tuple struct and back, and nothing breaks.
How to fix this warning/error
Use the constructor from its original location X and not through reexports in modules outer to X.