File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ unicode-ident = "1.0"
2525
2626[dev-dependencies ]
2727quote = { version = " 1.0" , default_features = false }
28+ rustversion = " 1"
2829
2930[features ]
3031proc-macro = []
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ extern crate proc_macro;
22
33use std:: mem;
44
5+ #[ rustversion:: attr( before( 1.32 ) , ignore) ]
56#[ test]
67fn test_proc_macro_span_size ( ) {
78 assert_eq ! ( mem:: size_of:: <proc_macro:: Span >( ) , 4 ) ;
@@ -22,6 +23,7 @@ fn test_proc_macro2_fallback_span_size_with_locations() {
2223 assert_eq ! ( mem:: size_of:: <Option <proc_macro2:: Span >>( ) , 12 ) ;
2324}
2425
26+ #[ rustversion:: attr( before( 1.32 ) , ignore) ]
2527#[ cfg_attr( not( all( wrap_proc_macro, not( span_locations) ) ) , ignore) ]
2628#[ test]
2729fn test_proc_macro2_wrapper_span_size_without_locations ( ) {
You can’t perform that action at this time.
0 commit comments