Closed matthiasbeyer closed 5 years ago
Hmm, the problem here is that the macro-generated deref
impl for lazy statics uses an unsafe
block because it accesses a 'static mut
. In #124 we're removing the need for 'static mut
, so we should be able to work properly with crates that #![forbid(unsafe_code)]
.
Alrighty! It should be possible now to use lazy_static
1.2.0
alongside #![forbid(unsafe_code)]
.
Hi,
I'm trying to use
#![forbid(unsafe_code)]
but I also want to uselazy_static!()
- is there a way?My failling travis job is here