diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-07-14 13:54:10 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-07-23 13:20:16 -0700 |
| commit | 9db1d356878aa6384df10c75c08f21dc1540495a (patch) | |
| tree | 88f40068ab593faa35f89eace1c56a4eb94a717c /src/libregex | |
| parent | 94e42c2d896cd26c1a48fa4a1748f2c62089fc2a (diff) | |
| download | rust-9db1d356878aa6384df10c75c08f21dc1540495a.tar.gz rust-9db1d356878aa6384df10c75c08f21dc1540495a.zip | |
collections: Deprecate shift/unshift
Use insert/remove instead.
Diffstat (limited to 'src/libregex')
| -rw-r--r-- | src/libregex/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex/parse.rs b/src/libregex/parse.rs index d53fed7aa80..a1fd62cecbe 100644 --- a/src/libregex/parse.rs +++ b/src/libregex/parse.rs @@ -998,7 +998,7 @@ fn concat_flatten(x: Ast, y: Ast) -> Ast { match (x, y) { (Cat(mut xs), Cat(ys)) => { xs.push_all_move(ys); Cat(xs) } (Cat(mut xs), ast) => { xs.push(ast); Cat(xs) } - (ast, Cat(mut xs)) => { xs.unshift(ast); Cat(xs) } + (ast, Cat(mut xs)) => { xs.insert(0, ast); Cat(xs) } (ast1, ast2) => Cat(vec!(ast1, ast2)), } } |
