From: bors Date: Mon, 12 Feb 2018 22:02:00 +0000 (+0000) Subject: Auto merge of #5032 - matklad:lazycell, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d0d90fb1df1ca81700f95d8cac5c1ee83c05463;p=cargo.git Auto merge of #5032 - matklad:lazycell, r=alexcrichton Switch to lazycell from crate.io This switches from a home-grown implementation of `lazycell` to the one from crates.io. There are no particularly large improvements here, but our own lazy cell is definitely unsafe in theory, because of potential reentrancy in `get_or_try_init`, and the one from crates.io does not have at least this hole :-) Note that `rustc` already has `lazycell` in its Cargo.lock (because of clippy I guess?), albeit with a lower version, 0.5. --- 3d0d90fb1df1ca81700f95d8cac5c1ee83c05463