Skip to content

Commit 706842c

Browse files
committed
---
yaml --- r: 35805 b: refs/heads/try2 c: ae8e678 h: refs/heads/master i: 35803: cc835ed v: v3
1 parent a475a69 commit 706842c

File tree

3 files changed

+15
-27
lines changed

3 files changed

+15
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c419e77cc12f0eae2e07097c2deb9a51238bb303
8+
refs/heads/try2: ae8e6781d2536a3b66d69dfad8f0d5e47eb8617c
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/man/rustc.1

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
9393
(see http://sources.redhat.com/autobook/autobook/
9494
autobook_17.html for detail)
9595
.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
9898
.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
113101
.TP
114102
\fB\-v\fR \fB\-\-version\fR
115103
Print version info and exit

branches/try2/src/rustc/driver/rustc.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ Options:
6868
(default: host triple)
6969
(see http://sources.redhat.com/autobook/autobook/
7070
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
8173
-v --version Print version info and exit
8274
");
8375
}
8476
8577
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+
8686
let lint_dict = lint::get_lint_dict();
8787
let mut max_key = 0;
8888
for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }

0 commit comments

Comments
 (0)