proc-macro2-diagnostics 0.10.1

Diagnostics for proc-macro2.
Documentation
1
2
3
4
5
6
7
fn main() {
    if let Some((version, channel, _)) = version_check::triple() {
        if version.at_least("1.31.0") && channel.supports_features() {
            println!("cargo:rustc-cfg=nightly_diagnostics");
        }
    }
}