]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #73909 - eltonlaw:unsafe-libstd-fs-rs, r=sfackler
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 2 Jul 2020 03:36:06 +0000 (20:36 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2020 03:36:06 +0000 (20:36 -0700)
commit441f04b56be65c9228b17adde686b0bda6d38917
tree4e0026720ac05a73a55b6de21c777255038a983e
parent9046f230fde97f5538971ee56c00dea5511822c5
parentb438811029edfb3f39451c91d7e107e0338cf043
Rollup merge of #73909 - eltonlaw:unsafe-libstd-fs-rs, r=sfackler

`#[deny(unsafe_op_in_unsafe_fn)]` in libstd/fs.rs

The `libstd/fs.rs` part of https://github.com/rust-lang/rust/issues/73904 . Wraps the two calls to an unsafe fn `Initializer::nop()` in an `unsafe` block.

Followed instructions in parent issue, ran `./x.py check src/libstd/` after adding the lint and two warnings were given. After adding these changes, those disappear.
src/libstd/lib.rs