Fix building with current rustc

Oh, nevermind, I see that Rust master has feature gated `visible_private_types` and removed the lint and made it illegal by default.