Skip to content

Commit 5cf4499

Browse files
committed
Remove unused parse_pathbuf_push function
This also remove the `allow(dead_code)`.
1 parent a88a94e commit 5cf4499

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compiler/rustc_session/src/options.rs

-12
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ mod desc {
313313
pub const parse_opt_string: &str = parse_string;
314314
pub const parse_string_push: &str = parse_string;
315315
pub const parse_opt_pathbuf: &str = "a path";
316-
pub const parse_pathbuf_push: &str = parse_opt_pathbuf;
317316
pub const parse_list: &str = "a space-separated list of strings";
318317
pub const parse_opt_comma_list: &str = "a comma-separated list of strings";
319318
pub const parse_number: &str = "a number";
@@ -354,7 +353,6 @@ mod desc {
354353
"one of supported split-debuginfo modes (`off` or `dsymutil`)";
355354
}
356355

357-
#[allow(dead_code)]
358356
mod parse {
359357
crate use super::*;
360358
use std::str::FromStr;
@@ -445,16 +443,6 @@ mod parse {
445443
}
446444
}
447445

448-
crate fn parse_pathbuf_push(slot: &mut Vec<PathBuf>, v: Option<&str>) -> bool {
449-
match v {
450-
Some(s) => {
451-
slot.push(PathBuf::from(s));
452-
true
453-
}
454-
None => false,
455-
}
456-
}
457-
458446
crate fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
459447
match v {
460448
Some(s) => {

0 commit comments

Comments
 (0)