@@ -2,23 +2,23 @@ use crate::{sug, Suggestion};
2
2
3
3
// FIXME: perhaps this could use `std::lazy` when it is stablizied
4
4
macro_rules! static_suggestions {
5
- ( $( $ glob: expr => [ $( $suggestion: expr ) ,* $( , ) ? ] ) ,* $( , ) ? ) => {
6
- pub ( crate ) const STATIC_SUGGESTIONS : :: once_cell:: unsync:: Lazy <Vec <( & ' static str , Vec <Suggestion >) >>
7
- = :: once_cell:: unsync:: Lazy :: new( || vec![ $( ( $ glob, vec![ $( $suggestion) ,* ] ) ) ,* ] ) ;
5
+ ( $( [ $ ( $ glob: expr ) , * $ ( , ) ? ] => [ $( $suggestion: expr ) ,* $( , ) ? ] ) ,* $( , ) ? ) => {
6
+ pub ( crate ) const STATIC_SUGGESTIONS : :: once_cell:: unsync:: Lazy <Vec <( Vec < & ' static str > , Vec <Suggestion >) >>
7
+ = :: once_cell:: unsync:: Lazy :: new( || vec![ $( ( vec! [ $ ( $ glob) , * ] , vec![ $( $suggestion) ,* ] ) ) ,* ] ) ;
8
8
}
9
9
}
10
10
11
11
static_suggestions ! {
12
- "*.md" => [
12
+ [ "*.md" ] => [
13
13
sug!( "test" , 0 , [ "linkchecker" ] ) ,
14
14
] ,
15
15
16
- "compiler/*" => [
16
+ [ "compiler/*" ] => [
17
17
sug!( "check" ) ,
18
18
sug!( "test" , 1 , [ "tests/ui" , "tests/run-make" ] ) ,
19
19
] ,
20
20
21
- "src/librustdoc/*" => [
21
+ [ "src/librustdoc/*" ] => [
22
22
sug!( "test" , 1 , [ "rustdoc" ] ) ,
23
23
] ,
24
24
}
0 commit comments