{"push_id":1007601597,"size":4,"distinct_size":0,"ref":"refs/heads/auto","head":"45f0ce71c19d8da081714dc917f11a8cc02d15be","before":"52e0bda644823089f16795cc9e071cf827b4810b","commits":[{"sha":"13f5fca0f2c72b8af256f052b51bd636b6932c8a","author":{"email":"d6f83bf8c4bd84de31594083b8fedf440fa975d1@gmail.com","name":"Jeffrey Seyfried"},"message":"privacy: change def_privacy so that it checks for visiblity instead of nameability","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/13f5fca0f2c72b8af256f052b51bd636b6932c8a"},{"sha":"32f251cc1c1ff8721b68b4afe5f86a6bb33c6822","author":{"email":"d6f83bf8c4bd84de31594083b8fedf440fa975d1@gmail.com","name":"Jeffrey Seyfried"},"message":"Add test","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/32f251cc1c1ff8721b68b4afe5f86a6bb33c6822"},{"sha":"d908ff1759bf27a8a8a99f113a246b8abc61f425","author":{"email":"d6f83bf8c4bd84de31594083b8fedf440fa975d1@gmail.com","name":"Jeffrey Seyfried"},"message":"Don't treat associated types specially in `def_privacy`\n\nImprove trait privacy error message","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/d908ff1759bf27a8a8a99f113a246b8abc61f425"},{"sha":"45f0ce71c19d8da081714dc917f11a8cc02d15be","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #31920 - jseyfried:fix_spurious_privacy_error, r=nikomatsakis\n\nThis PR allows using methods from traits that are visible but are defined in an inaccessible module (fixes #18241). For example,\n```rust\nmod foo {\n    pub use foo::bar::Tr;\n    mod bar { // This module is inaccessible from `g`\n        pub trait Tr { fn f(&self) {} }\n    }\n}\nfn g<T: foo::Tr>(t: T) {\n    t.f(); // Currently, this is a privacy error even though `foo::Tr` is visible\n}\n```\n\nAfter this PR, it will continue to be a privacy error to use a method from a trait that is not visible. This can happen when a public trait inherits from a private trait (in violation of the `public_in_private` lint) -- see @petrochenkov's example in #28504.\nr? @nikomatsakis","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/45f0ce71c19d8da081714dc917f11a8cc02d15be"}]}