]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #51786 - cuviper:stat64-pointers, r=Mark-Simulacrum
authorPietro Albini <pietro@pietroalbini.org>
Tue, 26 Jun 2018 09:35:41 +0000 (11:35 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 09:35:41 +0000 (11:35 +0200)
commit2348dc5b3f8403b28d25e6b95a534b7bb5100fb9
tree4800d14e600205fa60155182a0fc81c9de718496
parent932db193c2f00bbaf23bd8529aa0937e120bceae
parent490f49fd2ab15ae25a6ffeae2de8f667a521f19d
Rollup merge of #51786 - cuviper:stat64-pointers, r=Mark-Simulacrum

Remove unnecessary stat64 pointer casts

In effect, these just casted `&mut stat64` to `*mut stat64`, twice.
That's harmless, but it masked a problem when this was copied to new
code calling `fstatat`, which takes a pointer to `struct stat`.  That
will be fixed by #51785, but let's remove the unnecessary casts here
too.
src/libstd/sys/unix/fs.rs