about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-20 10:12:57 -0700
committerGitHub <noreply@github.com>2022-09-20 10:12:57 -0700
commit3f377d3f9670b28abb8b52b3e69b8d76f2eb2c42 (patch)
tree89ebc21ba6b6546d288043af4d883d91d6af3772 /src/test/rustdoc-ui/coverage/enum-tuple.rs
parent14b27cfd11be4285d61415015d0d38e42d401ae3 (diff)
parenta2cb8a49498c9eab1cf5617135e7de0b3013843b (diff)
downloadrust-3f377d3f9670b28abb8b52b3e69b8d76f2eb2c42.tar.gz
rust-3f377d3f9670b28abb8b52b3e69b8d76f2eb2c42.zip
Rollup merge of #101014 - isikkema:fix-zmeta-stats-file-encoder-no-read-perms, r=isikkema
Fix -Zmeta-stats ICE by giving `FileEncoder` file read permissions

Fixes #101001

As far as I can tell, #101001 is caused because the file is being created with write-only permissions here: https://github.com/rust-lang/rust/blob/master/compiler/rustc_serialize/src/opaque.rs#L196

but it is trying to be read here: https://github.com/rust-lang/rust/blob/master/compiler/rustc_metadata/src/rmeta/encoder.rs#L780

This PR attempts to fix this by creating/opening the file with the same permissions as `File::create()` with the addition of read.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions