From aeb06f2fb1d2d5cc59349ee82eebfe7191762981 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Mon, 19 Aug 2013 16:00:33 -0700 Subject: [PATCH] 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. --- src/librusti/rusti.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)