diff options
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 020c49d0458..6b365d5fcb5 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -313,7 +313,6 @@ mod desc { pub const parse_opt_string: &str = parse_string; pub const parse_string_push: &str = parse_string; pub const parse_opt_pathbuf: &str = "a path"; - pub const parse_pathbuf_push: &str = parse_opt_pathbuf; pub const parse_list: &str = "a space-separated list of strings"; pub const parse_opt_comma_list: &str = "a comma-separated list of strings"; pub const parse_number: &str = "a number"; @@ -354,7 +353,6 @@ mod desc { "one of supported split-debuginfo modes (`off` or `dsymutil`)"; } -#[allow(dead_code)] mod parse { crate use super::*; use std::str::FromStr; @@ -445,16 +443,6 @@ mod parse { } } - crate fn parse_pathbuf_push(slot: &mut Vec<PathBuf>, v: Option<&str>) -> bool { - match v { - Some(s) => { - slot.push(PathBuf::from(s)); - true - } - None => false, - } - } - crate fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool { match v { Some(s) => { |
