PSA: Late, silent breakage for beta

Two PRs landed in the runup to beta that, sadly, somewhat silently change the semantics of existing methods:

  • The order of arguments to ptr::copy and related methods was reversed, making them consistent with the order of IO APIs.

  • The splitn function n argument's meaning changed to the number of returned items, rather than the number of splits.

If you're upgrading to beta, you should audit uses of these APIs.

cc @alexcrichton


Thankfully the breakage is not always silent due to differing constness on the parameters.