about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-29 01:32:17 +0100
committerGitHub <noreply@github.com>2020-03-29 01:32:17 +0100
commitd584f5a386c4d06afbe1d7375bfe43c08b19549d (patch)
tree7fff9bd42b3c207677c158326f96780ccb917501 /src/libstd/sys/unix/stack_overflow.rs
parent77621317d643cc5d13da60b26ab68b057668e688 (diff)
parent271d43b158f71422df2239764d4d54734d4ebcfb (diff)
downloadrust-d584f5a386c4d06afbe1d7375bfe43c08b19549d.tar.gz
rust-d584f5a386c4d06afbe1d7375bfe43c08b19549d.zip
Rollup merge of #69937 - TyPR124:osstr_ascii, r=dtolnay
ASCII methods on OsStr

Would close #69566

I don't know enough about encodings to know if this is a valid change, however the comment on the issue suggests it could be.

This does two things:

1. Makes ASCII methods available on OsStr

2. Makes it possible to obtain a `&mut OsStr`. This is necessary to actually use `OsStr::make_ascii_*case` methods since they modify the underlying value. As far as I can tell, the only way to modify a `&mut OsStr` is via the methods I just added.

My original hope was to have these methods on `OsStrExt` for Windows, since the standard library already assumes `make_ascii_uppercase` is valid in Windows (see the change I made to windows/process.rs). If it is found these are not valid changes on non-Windows platforms, I can move the methods to the ext trait instead.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions