about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-04-29 10:23:07 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-04-29 10:23:53 -0700
commitc52fb52fbcb57ef8eb9f2e5782339b9e72cc81f8 (patch)
treef6e4950febadcca84c5a33606ad5f6cbdf785651 /src/comp
parenta2f68b2d585f0b467f0911d162f3cb9bc7d1ad14 (diff)
downloadrust-c52fb52fbcb57ef8eb9f2e5782339b9e72cc81f8.tar.gz
rust-c52fb52fbcb57ef8eb9f2e5782339b9e72cc81f8.zip
rustc: Remove the wrong-compiler warning; we're self-hosting now.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/driver/rustc.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 99c736025db..db385c8e04d 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -98,19 +98,11 @@ fn pretty_print_input(session.session sess,
     pretty.pprust.print_file(crate.node.module, input, std.io.stdout());
 }
 
-fn warn_wrong_compiler() {
-    io.stdout().write_str("This is the rust 'self-hosted' compiler.
-The one written in rust.
-It is currently incomplete.
-You may want rustboot instead, the compiler next door.\n");
-}
-
 fn usage(session.session sess, str argv0) {
     io.stdout().write_str(#fmt("usage: %s [options] <input>\n", argv0) + "
 options:
 
     -o <filename>      write output to <filename>
-    --nowarn           suppress wrong-compiler warning
     --glue             generate glue.bc file
     --shared           compile a shared-library crate
     --pretty           pretty-print the input instead of compiling
@@ -147,7 +139,7 @@ fn main(vec[str] args) {
     auto sess = session.session(target_crate_num, target_cfg, crate_cache,
                                 md, front.codemap.new_codemap());
 
-    auto opts = vec(optflag("nowarn"), optflag("h"), optflag("glue"),
+    auto opts = vec(optflag("h"), optflag("glue"),
                     optflag("pretty"), optflag("ls"), optflag("parse-only"),
                     optflag("O"), optflag("shared"), optmulti("L"),
                     optflag("S"), optflag("c"), optopt("o"),
@@ -158,9 +150,6 @@ fn main(vec[str] args) {
         case (GetOpts.failure(?f)) { sess.err(GetOpts.fail_str(f)); fail; }
         case (GetOpts.success(?m)) { match = m; }
     }
-    if (!opt_present(match, "nowarn")) {
-        warn_wrong_compiler();
-    }
     if (opt_present(match, "h")) {
         usage(sess, binary);
         ret;