Skip to content

Commit aeb06f2

Browse files
committed
Fix broken rusti
Commit 0932ab3 accidentally broke rusti by making it parse the binary name as the input, instead of parsing what the user typed.
1 parent 2246d56 commit aeb06f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librusti/rusti.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn run(mut program: ~Program, binary: ~str, lib_search_paths: ~[~str],
142142
// Stage 1: parse the input and filter it into the program (as necessary)
143143
//
144144
debug!("parsing: %s", input);
145-
let crate = parse_input(sess, binary);
145+
let crate = parse_input(sess, input);
146146
let mut to_run = ~[]; // statements to run (emitted back into code)
147147
let new_locals = @mut ~[]; // new locals being defined
148148
let mut result = None; // resultant expression (to print via pp)

0 commit comments

Comments
 (0)