mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
8e74842089
Special treatment like this was necessary before `pub(restricted)` had been implemented and only two visibilities existed - `pub` and non-`pub`. Now it's no longer necessary and the desired behavior follows from `pub(restricted)`-style visibilities naturally assigned to enum variants and trait items.