Simplify command-line-argument declarations in librustdoc
This commit is contained in:
parent
001013c63c
commit
b8377e5844
2 changed files with 463 additions and 472 deletions
|
@ -1411,20 +1411,6 @@ impl RustcOptGroup {
|
|||
pub fn apply(&self, options: &mut getopts::Options) {
|
||||
(self.apply)(options);
|
||||
}
|
||||
|
||||
pub fn stable<F>(name: &'static str, f: F) -> RustcOptGroup
|
||||
where
|
||||
F: Fn(&mut getopts::Options) -> &mut getopts::Options + 'static,
|
||||
{
|
||||
RustcOptGroup { name, apply: Box::new(f), stability: OptionStability::Stable }
|
||||
}
|
||||
|
||||
pub fn unstable<F>(name: &'static str, f: F) -> RustcOptGroup
|
||||
where
|
||||
F: Fn(&mut getopts::Options) -> &mut getopts::Options + 'static,
|
||||
{
|
||||
RustcOptGroup { name, apply: Box::new(f), stability: OptionStability::Unstable }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn make_opt(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue