]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #47165 - mbrubeck:args, r=alexcrichton
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 6 Jan 2018 01:13:33 +0000 (02:13 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2018 01:13:33 +0000 (02:13 +0100)
[unix] Don't clone command-line args on startup

Fixes part of #47164 and simplifies the `args` code on non-Apple Unix platforms.

Note: This could change behavior for programs that use both `std::env::args` *and* unsafe code that mutates `argv` directly.  However, these programs already behave differently on different platforms.  The new behavior on non-Apple platforms is closer to the existing behavior on Apple platforms.


Trivial merge