@@ -98,19 +98,11 @@ fn pretty_print_input(session.session sess,
98
98
pretty. pprust . print_file ( crate . node. module , input, std. io . stdout ( ) ) ;
99
99
}
100
100
101
- fn warn_wrong_compiler ( ) {
102
- io. stdout ( ) . write_str ( "This is the rust 'self-hosted' compiler.
103
- The one written in rust.
104
- It is currently incomplete.
105
- You may want rustboot instead, the compiler next door.\n " ) ;
106
- }
107
-
108
101
fn usage ( session . session sess, str argv0 ) {
109
102
io. stdout ( ) . write_str ( #fmt ( "usage: %s [options] <input>\n " , argv0) + "
110
103
options:
111
104
112
105
-o <filename> write output to <filename>
113
- --nowarn suppress wrong-compiler warning
114
106
--glue generate glue.bc file
115
107
--shared compile a shared-library crate
116
108
--pretty pretty-print the input instead of compiling
@@ -147,7 +139,7 @@ fn main(vec[str] args) {
147
139
auto sess = session. session ( target_crate_num, target_cfg, crate_cache,
148
140
md, front. codemap . new_codemap ( ) ) ;
149
141
150
- auto opts = vec ( optflag ( "nowarn" ) , optflag ( " h") , optflag ( "glue" ) ,
142
+ auto opts = vec ( optflag ( "h" ) , optflag ( "glue" ) ,
151
143
optflag ( "pretty" ) , optflag ( "ls" ) , optflag ( "parse-only" ) ,
152
144
optflag ( "O" ) , optflag ( "shared" ) , optmulti ( "L" ) ,
153
145
optflag ( "S" ) , optflag ( "c" ) , optopt ( "o" ) ,
@@ -158,9 +150,6 @@ fn main(vec[str] args) {
158
150
case ( GetOpts . failure ( ?f) ) { sess. err ( GetOpts . fail_str ( f) ) ; fail; }
159
151
case ( GetOpts . success ( ?m) ) { match = m; }
160
152
}
161
- if ( !opt_present ( match , "nowarn" ) ) {
162
- warn_wrong_compiler ( ) ;
163
- }
164
153
if ( opt_present ( match , "h" ) ) {
165
154
usage ( sess, binary) ;
166
155
ret;
0 commit comments