commit | 79105e54fc32f734c4016e19e6c459f3f27452c5 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Dec 31 11:03:04 2017 -0500 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Dec 31 11:03:18 2017 -0500 |
tree | 75bfb56bf8c1ae82331c1e04284cf895e7480238 | |
parent | ddfca05aa7b43f2385efc78dc89db27a53fbf2dd [diff] [blame] |
Support rust 1.15.0
diff --git a/tests/test.rs b/tests/test.rs index 2de120a..6442ba6 100644 --- a/tests/test.rs +++ b/tests/test.rs
@@ -1,6 +1,13 @@ extern crate proc_macro2; -use proc_macro2::{Term, Literal, TokenStream, TokenNode, Span}; +use proc_macro2::{Term, Literal, TokenStream}; + +#[cfg(procmacro2_unstable)] +use proc_macro2::TokenNode; + +#[cfg(procmacro2_unstable)] +#[cfg(not(feature = "unstable"))] +use proc_macro2::Span; #[test] fn symbols() {