diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-05-05 16:06:21 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-05-05 16:06:21 -0700 |
| commit | 9b88cd1c691626bb38c243c1996d1d2d045bbeda (patch) | |
| tree | 18159b464609e6d24d8818f9cd7352417356580e /src/rustllvm/RustWrapper.cpp | |
| parent | 6cd748611346dec3181f81ca3aa551cce0529343 (diff) | |
| download | rust-9b88cd1c691626bb38c243c1996d1d2d045bbeda.tar.gz rust-9b88cd1c691626bb38c243c1996d1d2d045bbeda.zip | |
std: Generalize generics a bit in std::env
Many bounds are currently of the form `T: ?Sized + AsRef<OsStr>` where the argument is `&T`, but the pattern elsewhere (primarily `std::fs`) has been to remove the `?Sized` bound and take `T` instead (allowing usage with both references and owned values). This commit generalizes the possible apis in `std::env` from `&T` to `T` in this fashion. The `split_paths` function remains the same as the return value borrows the input value, so ta borrowed reference is required.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
