1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![cfg_attr(rust_unstable, feature(proc_macro_diagnostic))]
extern crate proc_macro;

pub mod span;
#[cfg(feature = "diag")] pub mod diagnostic;

pub const IS_NIGHTLY: bool = {
    #[allow(unreachable_code)]
    const fn inner() -> bool {
        #[cfg(rust_unstable)] return true;
        return false;
    }

    inner()
};