claim 0.4.0

Assertion macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate autocfg;

fn main() {
    let cfg = autocfg::new();
    cfg.emit_path_cfg("core::task::Poll", "has_task_poll");
    cfg.emit_path_cfg("std::task::Poll", "has_task_poll");

    // Needed for `assert_matches!` and `?` macro repetition
    // See https://doc.rust-lang.org/edition-guide/rust-2018/macros/at-most-once.html
    cfg.emit_rustc_version(1, 32);

    if cfg.probe_rustc_version(1, 15) && !cfg.probe_rustc_version(1, 16) {
        autocfg::emit("has_private_in_public_issue");
    }
}