summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-20 11:44:01 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-20 11:44:01 -0700
commite72d011f685ccc44cd9d3284b611f5899b3cca70 (patch)
tree5c0e4b1789c5020b5aa8e8f152d04ff23eb767af /src
parentf8dab3a6c0adff63854d5e238961a771419d23b7 (diff)
downloadrust-e72d011f685ccc44cd9d3284b611f5899b3cca70.tar.gz
rust-e72d011f685ccc44cd9d3284b611f5899b3cca70.zip
librustc: Remove debug code and add scary warnings for rusti/rustpkg
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/trans/base.rs6
-rw-r--r--src/librusti/rusti.rc4
-rw-r--r--src/librustpkg/rustpkg.rc3
3 files changed, 10 insertions, 3 deletions
diff --git a/src/librustc/middle/trans/base.rs b/src/librustc/middle/trans/base.rs
index 55cf1ae23b8..26700b83c9f 100644
--- a/src/librustc/middle/trans/base.rs
+++ b/src/librustc/middle/trans/base.rs
@@ -804,9 +804,9 @@ pub fn invoke(bcx: block, llfn: ValueRef, +llargs: ~[ValueRef]) -> block {
     if bcx.unreachable { return bcx; }
 
     match bcx.node_info {
-        None => error!("invoke at ???"),
+        None => debug!("invoke at ???"),
         Some(node_info) => {
-            error!("invoke at %s",
+            debug!("invoke at %s",
                    bcx.sess().codemap.span_to_str(node_info.span));
         }
     }
@@ -1512,7 +1512,7 @@ pub fn alloc_ty(bcx: block, t: ty::t) -> ValueRef {
     let _icx = bcx.insn_ctxt("alloc_ty");
     let ccx = bcx.ccx();
     let llty = type_of::type_of(ccx, t);
-    if ty::type_has_params(t) { error!("%s", ty_to_str(ccx.tcx, t)); }
+    if ty::type_has_params(t) { debug!("%s", ty_to_str(ccx.tcx, t)); }
     fail_unless!(!ty::type_has_params(t));
     let val = alloca(bcx, llty);
     return val;
diff --git a/src/librusti/rusti.rc b/src/librusti/rusti.rc
index 182cfc43ade..ed07ea1a448 100644
--- a/src/librusti/rusti.rc
+++ b/src/librusti/rusti.rc
@@ -386,6 +386,10 @@ pub fn main() {
         stmts: ~""
     };
 
+    io::println("WARNING: The Rust REPL is experimental and may be");
+    io::println("unstable. If you encounter problems, please use the");
+    io::println("compiler instead.");
+
     unsafe {
         do rl::complete |line, suggest| {
             if line.starts_with(":") {
diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc
index 5b9f3c3cd22..c2e3ce04f06 100644
--- a/src/librustpkg/rustpkg.rc
+++ b/src/librustpkg/rustpkg.rc
@@ -867,6 +867,9 @@ impl Ctx {
 }
 
 pub fn main() {
+    io::println("WARNING: The Rust package manager is experimental and may");
+    io::println("be unstable.");
+
     let args = os::args();
     let opts = ~[getopts::optflag(~"h"), getopts::optflag(~"help"),
                  getopts::optflag(~"j"), getopts::optflag(~"json"),