Skip to content

Commit 3f6f79b

Browse files
committed
auto merge of #8627 : kballard/rust/fix-rusti, r=catamorphism
Commit 0932ab3 accidentally broke rusti by making it parse the binary name as the input, instead of parsing what the user typed.
2 parents 7e50260 + aeb06f2 commit 3f6f79b

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)