1
Fork 0

Simplify command-line-argument declarations in librustdoc

This commit is contained in:
Zalathar 2024-11-07 23:27:20 +11:00
parent 001013c63c
commit b8377e5844
2 changed files with 463 additions and 472 deletions

View file

@ -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(