Skip to content

Commit 4a9d8ff

Browse files
committed
Fix use statements with rusti
1 parent 54f2147 commit 4a9d8ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librusti/rusti.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
122122

123123
debug!("building driver input");
124124
let head = include_str!("wrapper.rs").to_owned();
125-
let foot = fmt!("%s\nfn main() {\n%s\n\nprint({\n%s\n})\n}",
125+
let foot = fmt!("fn main() {\n%s\n%s\n\nprint({\n%s\n})\n}",
126126
repl.view_items, repl.stmts, input);
127127
let wrapped = driver::str_input(head + foot);
128128

@@ -444,6 +444,7 @@ mod tests {
444444
}
445445

446446
fn use_does_not_crash() {
447+
// Regression tests for #5937
447448
let mut r = repl();
448449
let result = run_line(&mut r, io::stdin(), io::stdout(),
449450
~"use core::util::with;", false);

0 commit comments

Comments
 (0)