File tree Expand file tree Collapse file tree 2 files changed +14
-26
lines changed Expand file tree Collapse file tree 2 files changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
93
93
(see http://sources.redhat.com/autobook/autobook/
94
94
autobook_17.html for detail)
95
95
.TP
96
- \- (W|A|D|F) help
97
- Print available 'lint' checks and default settings
96
+ \fB \- W help \fR
97
+ Print 'lint' options and default settings
98
98
.TP
99
- \fB \- W \fR <foo>
100
- warn about <foo> by default
101
- .TP
102
- \fB \- A \fR <foo>
103
- allow <foo> by default
104
- .TP
105
- \fB \- D \fR <foo>
106
- deny <foo> by default
107
- .TP
108
- \fB \- F \fR <foo>
109
- forbid <foo> (deny, and deny all overrides)
110
- .TP
111
- \fB \- Z \fR help
112
- list internal options for debugging rustc
99
+ \fB \- Z help \fR
100
+ Print internal options for debugging rustc
113
101
.TP
114
102
\fB \- v \fR \fB \-\- version \fR
115
103
Print version info and exit
Original file line number Diff line number Diff line change @@ -68,21 +68,21 @@ Options:
68
68
( default: host triple)
69
69
( see http: //sources. redhat . com /autobook/autobook/
70
70
autobook_17. html for detail )
71
-
72
- -( W |A |D |F ) help Print available ' lint' checks and default settings
73
-
74
- -W <foo> warn about <foo> by default
75
- -A <foo> allow <foo> by default
76
- -D <foo> deny <foo> by default
77
- -F <foo> forbid <foo> ( deny, and deny all overrides)
78
-
79
- -Z help list internal options for debugging rustc
80
-
71
+ -W help Print ' lint' options and default settings
72
+ -Z help Print internal options for debugging rustc
81
73
-v --version Print version info and exit
82
74
");
83
75
}
84
76
85
77
fn describe_warnings() {
78
+ io::println(fmt!("
79
+ Available lint options:
80
+ -W < foo > Warn about < foo >
81
+ -A < foo > Allow < foo >
82
+ -D < foo > Deny < foo >
83
+ -F < foo > Forbid < foo > ( deny, and deny all overrides)
84
+ "));
85
+
86
86
let lint_dict = lint::get_lint_dict();
87
87
let mut max_key = 0;
88
88
for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }
You can’t perform that action at this time.
0 commit comments