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

Commit 0b92969

Browse files
committed
Clean up the list of parser descriptions.
Put identical ones next to each other, and avoid duplicated strings.
1 parent 94b93d3 commit 0b92969

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/librustc_session/options.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,18 @@ macro_rules! options {
239239
pub const parse_bool: Option<&str> = Some("one of: `y`, `yes`, `on`, `n`, `no`, or `off`");
240240
pub const parse_opt_bool: Option<&str> = parse_bool;
241241
pub const parse_string: Option<&str> = Some("a string");
242-
pub const parse_string_push: Option<&str> = Some("a string");
243-
pub const parse_pathbuf_push: Option<&str> = Some("a path");
244-
pub const parse_opt_string: Option<&str> = Some("a string");
242+
pub const parse_opt_string: Option<&str> = parse_string;
243+
pub const parse_string_push: Option<&str> = parse_string;
245244
pub const parse_opt_pathbuf: Option<&str> = Some("a path");
245+
pub const parse_pathbuf_push: Option<&str> = parse_opt_pathbuf;
246246
pub const parse_list: Option<&str> = Some("a space-separated list of strings");
247-
pub const parse_opt_list: Option<&str> = Some("a space-separated list of strings");
247+
pub const parse_opt_list: Option<&str> = parse_list;
248248
pub const parse_opt_comma_list: Option<&str> = Some("a comma-separated list of strings");
249-
pub const parse_threads: Option<&str> = Some("a number");
250249
pub const parse_uint: Option<&str> = Some("a number");
250+
pub const parse_opt_uint: Option<&str> = parse_uint;
251+
pub const parse_threads: Option<&str> = parse_uint;
251252
pub const parse_passes: Option<&str> =
252253
Some("a space-separated list of passes, or `all`");
253-
pub const parse_opt_uint: Option<&str> =
254-
Some("a number");
255254
pub const parse_panic_strategy: Option<&str> =
256255
Some("either `unwind` or `abort`");
257256
pub const parse_relro_level: Option<&str> =

0 commit comments

Comments
 (0)