Skip to content

Commit

Permalink
Rollup merge of rust-lang#53001 - petrochenkov:master, r=estebank
Browse files Browse the repository at this point in the history
privacy: Fix an ICE in `path_is_private_type`

Fixes rust-lang#52879

(Untested.)
  • Loading branch information
kennytm authored Aug 4, 2018
2 parents 035db4b + 6a3dfa4 commit d028b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_privacy/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ struct ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b: 'a, 'tcx: 'b> {
impl<'a, 'tcx> ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx> {
fn path_is_private_type(&self, path: &hir::Path) -> bool {
let did = match path.def {
Def::PrimTy(..) | Def::SelfTy(..) => return false,
Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => return false,
def => def.def_id(),
};

Expand Down

0 comments on commit d028b3e

Please sign in to comment.