mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 15:23:05 +00:00
remove some workarounds for old bugs
This commit is contained in:
parent
e1620def9f
commit
67ecda6342
@ -120,8 +120,7 @@ tag result { success(match); failure(fail_); }
|
||||
|
||||
fn getopts(vec[str] args, vec[opt] opts) -> result {
|
||||
auto n_opts = vec::len[opt](opts);
|
||||
fn empty_(uint x) -> vec[optval] { ret vec::empty[optval](); }
|
||||
auto f = empty_;
|
||||
fn f(uint x) -> vec[optval] { ret vec::empty(); }
|
||||
auto vals = vec::init_fn_mut[vec[optval]](f, n_opts);
|
||||
let vec[str] free = [];
|
||||
auto l = vec::len[str](args);
|
||||
|
Loading…
Reference in New Issue
Block a user