about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-08-19 16:00:33 -0700
committerKevin Ballard <kevin@sb.org>2013-08-19 16:00:33 -0700
commitaeb06f2fb1d2d5cc59349ee82eebfe7191762981 (patch)
tree21a3cf47fe914020c0f88ccfa793deaa95f52037
parent2246d56e7149402f18041d05e3c0ecf598671904 (diff)
downloadrust-aeb06f2fb1d2d5cc59349ee82eebfe7191762981.tar.gz
rust-aeb06f2fb1d2d5cc59349ee82eebfe7191762981.zip
Fix broken rusti
Commit 0932ab336 accidentally broke rusti by making it parse the binary
name as the input, instead of parsing what the user typed.
-rw-r--r--src/librusti/rusti.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librusti/rusti.rs b/src/librusti/rusti.rs
index d4bee13aae7..91b6be55d40 100644
--- a/src/librusti/rusti.rs
+++ b/src/librusti/rusti.rs
@@ -142,7 +142,7 @@ fn run(mut program: ~Program, binary: ~str, lib_search_paths: ~[~str],
     // Stage 1: parse the input and filter it into the program (as necessary)
     //
     debug!("parsing: %s", input);
-    let crate = parse_input(sess, binary);
+    let crate = parse_input(sess, input);
     let mut to_run = ~[];       // statements to run (emitted back into code)
     let new_locals = @mut ~[];  // new locals being defined
     let mut result = None;      // resultant expression (to print via pp)