diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-07-11 10:33:19 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-07-11 10:33:19 +0200 |
| commit | 4d325b1a15126c6aa9f97d510a11d93d4ac2ad53 (patch) | |
| tree | 210936a56a954c6ec5a3d1c5735bb9672da330b3 /src/rt/rust_timer.cpp | |
| parent | 1e965412d8d765a6b0af65aa660279520639ef62 (diff) | |
| download | rust-4d325b1a15126c6aa9f97d510a11d93d4ac2ad53.tar.gz rust-4d325b1a15126c6aa9f97d510a11d93d4ac2ad53.zip | |
Spill instead of copy when binding a pattern that's only a var binding
The alias rules guarantee that the alt-ed value will outlive the binding's last use, so this is safe. This is a preparation for or-patterns. Joining scoped bindings seems like it would get messy.
Diffstat (limited to 'src/rt/rust_timer.cpp')
0 files changed, 0 insertions, 0 deletions
