@@ -2,23 +2,23 @@ use crate::{sug, Suggestion};
22
33// FIXME: perhaps this could use `std::lazy` when it is stablizied
44macro_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) ,* ] ) ) ,* ] ) ;
88 }
99}
1010
1111static_suggestions ! {
12- "*.md" => [
12+ [ "*.md" ] => [
1313 sug!( "test" , 0 , [ "linkchecker" ] ) ,
1414 ] ,
1515
16- "compiler/*" => [
16+ [ "compiler/*" ] => [
1717 sug!( "check" ) ,
1818 sug!( "test" , 1 , [ "tests/ui" , "tests/run-make" ] ) ,
1919 ] ,
2020
21- "src/librustdoc/*" => [
21+ [ "src/librustdoc/*" ] => [
2222 sug!( "test" , 1 , [ "rustdoc" ] ) ,
2323 ] ,
2424}
0 commit comments