proc-macro-error 0.4.8

Almost drop-in replacement to panics in proc-macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[rustversion::not(nightly)]
fn check() {
    println!("cargo:rustc-cfg=use_fallback");
}

#[rustversion::nightly]
fn check() {}

fn main() {
    check()
}