#nightly #commit #crimes

nightly nightly-crimes

Please do not use this

3 stable releases

1.0.2 Jul 4, 2021
1.0.1 Jul 2, 2021

#1816 in Development tools

Download history 33/week @ 2024-03-28 16/week @ 2024-04-04 23/week @ 2024-05-16 202/week @ 2024-05-23 379/week @ 2024-05-30 455/week @ 2024-06-06 466/week @ 2024-06-13 237/week @ 2024-06-20 170/week @ 2024-06-27

1,405 downloads per month

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!

Dependencies