3 stable releases

1.0.2 Jul 3, 2021
1.0.0 Jul 2, 2021

#95 in #nightly

Download history 4/week @ 2024-02-20 25/week @ 2024-02-27 4/week @ 2024-03-12 3/week @ 2024-03-26 47/week @ 2024-04-02

54 downloads per month
Used in nightly-crimes

BSD-2-Clause

3KB

nightly-crimes

The nightly_crimes!{} macro commits horrible crimes to allow you to enable nightly features on the stable compiler.

https://twitter.com/m_ou_se/status/1410930900116951040

Please do not use this.

Example

use nightly_crimes::nightly_crimes;

nightly_crimes! {
    #![feature(never_type)]
    #![feature(box_syntax)]
    fn hey(x: Result<&str, !>) -> Box<String> {
        match x {
            Ok(x) => box x.to_string(),
            Err(x) => x,
        }
    }
}

fn main() {
    println!("{}", hey(Ok("success!")));
}
$ cargo +stable r
success!

No runtime deps