rust/src/libstd/sys_common
Dylan DPC d584f5a386
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.
2020-03-29 01:32:17 +01:00
..
alloc.rs Add support for RISC-V 64-bit GNU/Linux 2020-01-01 09:52:18 +07:00
at_exit_imp.rs Format the world 2019-12-22 17:42:47 -05:00
backtrace.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
bytestring.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
condvar.rs Format the world 2019-12-22 17:42:47 -05:00
fs.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
io.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
mod.rs Use drop instead of the toilet closure |_| () 2020-01-02 08:56:12 +00:00
mutex.rs Format the world 2019-12-22 17:42:47 -05:00
net.rs refactor fix using cfg_if! (fix build on Solaris) 2020-01-20 19:15:37 +01:00
os_str_bytes.rs ascii methods on osstr 2020-03-28 18:34:48 -04:00
poison.rs Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
process.rs reduce references on match patterns (clippy::match_ref_pats) 2020-03-07 21:48:17 +01:00
remutex.rs Fix abort-on-eprintln during process shutdown 2020-03-20 07:34:56 -07:00
rwlock.rs Format the world 2019-12-22 17:42:47 -05:00
thread.rs Eliminate FnBox usages from libstd. 2019-04-10 09:40:44 +08:00
thread_info.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
thread_local.rs Format the world 2019-12-22 17:42:47 -05:00
util.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
wtf8.rs Rollup merge of #69937 - TyPR124:osstr_ascii, r=dtolnay 2020-03-29 01:32:17 +01:00