Fix private module loophole in the 'private type in public item' check

This commit is contained in:
Nick Cameron 2015-03-12 10:44:56 +13:00
parent ea8b82e90c
commit 46aa621452
13 changed files with 76 additions and 65 deletions

View file

@ -736,8 +736,8 @@ mod opt {
use getopts;
use super::RustcOptGroup;
type R = RustcOptGroup;
type S<'a> = &'a str;
pub type R = RustcOptGroup;
pub type S<'a> = &'a str;
fn stable(g: getopts::OptGroup) -> R { RustcOptGroup::stable(g) }
fn unstable(g: getopts::OptGroup) -> R { RustcOptGroup::unstable(g) }