Rust 2018: an early preview

+ to the question.

Quick search in the rust repo (without tests and docs) - pub(crate) - 118 results, pub(super) - 170 results.

I've gathered some statistics about distribution of "sufficient visibilities" in the original RFC - pub(restricted) item by pnkfelix · Pull Request #1422 · rust-lang/rfcs · GitHub and pub(super) was more common too.

(I addition, pub(crate) in the root module is useless and can be removed, but pub(super) in root module is invalid, so use of pub(super) by default even in cases when super is equivalent to crate prevents this little mistake.)

4 Likes