Skip to content

Commit b8377e5

Browse files
committed
Simplify command-line-argument declarations in librustdoc
1 parent 001013c commit b8377e5

File tree

2 files changed

+463
-472
lines changed

2 files changed

+463
-472
lines changed

compiler/rustc_session/src/config.rs

-14
Original file line numberDiff line numberDiff line change
@@ -1411,20 +1411,6 @@ impl RustcOptGroup {
14111411
pub fn apply(&self, options: &mut getopts::Options) {
14121412
(self.apply)(options);
14131413
}
1414-
1415-
pub fn stable<F>(name: &'static str, f: F) -> RustcOptGroup
1416-
where
1417-
F: Fn(&mut getopts::Options) -> &mut getopts::Options + 'static,
1418-
{
1419-
RustcOptGroup { name, apply: Box::new(f), stability: OptionStability::Stable }
1420-
}
1421-
1422-
pub fn unstable<F>(name: &'static str, f: F) -> RustcOptGroup
1423-
where
1424-
F: Fn(&mut getopts::Options) -> &mut getopts::Options + 'static,
1425-
{
1426-
RustcOptGroup { name, apply: Box::new(f), stability: OptionStability::Unstable }
1427-
}
14281414
}
14291415

14301416
pub fn make_opt(

0 commit comments

Comments
 (0)