Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 85ee3d0

Browse files
committed
Remove unused parse_opt_list function
1 parent b52769b commit 85ee3d0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ macro_rules! options {
299299
pub const parse_opt_pathbuf: &str = "a path";
300300
pub const parse_pathbuf_push: &str = parse_opt_pathbuf;
301301
pub const parse_list: &str = "a space-separated list of strings";
302-
pub const parse_opt_list: &str = parse_list;
303302
pub const parse_opt_comma_list: &str = "a comma-separated list of strings";
304303
pub const parse_number: &str = "a number";
305304
pub const parse_opt_number: &str = parse_number;
@@ -435,18 +434,6 @@ macro_rules! options {
435434
}
436435
}
437436

438-
fn parse_opt_list(slot: &mut Option<Vec<String>>, v: Option<&str>)
439-
-> bool {
440-
match v {
441-
Some(s) => {
442-
let v = s.split_whitespace().map(|s| s.to_string()).collect();
443-
*slot = Some(v);
444-
true
445-
},
446-
None => false,
447-
}
448-
}
449-
450437
fn parse_opt_comma_list(slot: &mut Option<Vec<String>>, v: Option<&str>)
451438
-> bool {
452439
match v {

0 commit comments

Comments
 (0)