'static
reference
This review is from Crev, a distributed system for code reviews. To add your review, set up cargo-crev
.
0.1.0 (current) Thoroughness: None Understanding: None
by kornelski on 2020-05-13
This exploits a bug in the compiler. Don't even think of using it.
Lib.rs has been able to verify that all files in the crate's tarball are in the crate's repository. Please note that this check is still in beta, and absence of this confirmation does not mean that the files don't match.
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories, so there is a possibility that published crates have a misleading repository URL, or contain different code from the code in the repository.
To review the actual code of the crate, it's best to use cargo crev open fake-static
. Alternatively, you can download the tarball of fake-static v0.1.0 or view the source online.
fake-static allows converting a reference with any lifetime into a reference with
'static
lifetime without theunsafe
keyword.Internally, this crate does not use unsafe code, it instead exploits a soundness bug in rustc:
https://github.com/rust-lang/rust/issues/25860
GHSA-8xw8-mmqv-frqq