diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-18 14:24:21 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-18 14:24:52 -0700 |
| commit | 2ac64d91ac9df242c780d162863c8c0abce448b1 (patch) | |
| tree | 99e82d86ca308fb3345f62f5d113ecc43bd587aa /src/rt/rust_kernel.cpp | |
| parent | e3f5403052e53b557998315fae780b5431a8ce0b (diff) | |
| download | rust-2ac64d91ac9df242c780d162863c8c0abce448b1.tar.gz rust-2ac64d91ac9df242c780d162863c8c0abce448b1.zip | |
change relative priority of auto-slice and auto-ptr
rationale: if you have an impl for &const ~[T] or &mut ~[T] and one for &[T], the first will be more likely to work and not lead to borrowck errors. I could imagine us wanting to offer multiple impls for methods we select the ptr-to-array when possible and the slice when necessary. Also, taking a ptr seems like fewer adaptations than slicing, and we tend to prefer fewer adaptations.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
