File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -954,7 +954,8 @@ fn test_meta() {
954
954
. assert_expand_items (
955
955
r#"foo! { cfg(target_os = "windows") }"# ,
956
956
r#"# [cfg (target_os = "windows")] fn bar () {}"# ,
957
- ) ;
957
+ )
958
+ . assert_expand_items ( r#"foo! { hello::world }"# , r#"# [hello :: world] fn bar () {}"# ) ;
958
959
}
959
960
960
961
#[ test]
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub(crate) mod fragments {
95
95
// https://doc.rust-lang.org/reference/paths.html#simple-paths
96
96
// The start of an meta must be a simple path
97
97
match p. current ( ) {
98
- IDENT | T ! [ :: ] | T ! [ super ] | T ! [ self ] | T ! [ crate ] => p. bump_any ( ) ,
98
+ IDENT | T ! [ super ] | T ! [ self ] | T ! [ crate ] => p. bump_any ( ) ,
99
99
T ! [ =] => {
100
100
p. bump_any ( ) ;
101
101
match p. current ( ) {
@@ -105,6 +105,7 @@ pub(crate) mod fragments {
105
105
}
106
106
break ;
107
107
}
108
+ _ if p. at ( T ! [ :: ] ) => p. bump ( T ! [ :: ] ) ,
108
109
_ => break ,
109
110
}
110
111
}
You can’t perform that action at this time.
0 commit comments