proc-macro2 0.1.2

A stable implementation of the upcoming new `proc_macro` API. Comes with an option, off by default, to also reimplement itself in terms of the upstream unstable API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate compiletest_rs as compiletest;

fn run_mode(mode: &'static str) {
    let mut config = compiletest::default_config();
    config.mode = mode.parse().expect("invalid mode");
    config.target_rustcflags = Some("-L target/debug/deps".to_owned());
    config.src_base = format!("tests/{}", mode).into();
    compiletest::run_tests(&config);
}

#[test]
fn compile_fail() {
    run_mode("compile-fail");
}