]> git.lizzy.rs Git - rust.git/commit
auto merge of #9096 : huonw/rust/linenoise, r=brson
authorbors <bors@rust-lang.org>
Thu, 12 Sep 2013 11:36:06 +0000 (04:36 -0700)
committerbors <bors@rust-lang.org>
Thu, 12 Sep 2013 11:36:06 +0000 (04:36 -0700)
commit0a2d3c5a6f3bbd5f8cd8e3361995d5fa6c4d1e73
treedf63170dd1385f7f4b5d23dd95d9bb02faa5196a
parent4825db44c81ca2b122282dfb59aa705ad2475e5d
parenta9184975da62769dfccbca73fb9bd554298a4d36
auto merge of #9096 : huonw/rust/linenoise, r=brson

- Wrap calls into linenoise in a mutex so that the functions don't have to be `unsafe` any more (fixes #3921)
- Stop leaking every line that linenoise reads.
- Handle the situation of `rl::complete(some_function); do spawn { rl::read(""); }` which would crash (`fail!` that turned into an abort, possibly due to failing with the lock locked) when the user attempted to tab-complete anything.
- Add a test for the various functions; it has to be run by hand to verify anything works, but it won't bitrot.