File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
compiler/rustc_attr_parsing/src Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,16 @@ macro_rules! attribute_groups {
2626 (
2727 pub ( crate ) static $name: ident = [ $( $names: ty) ,* $( , ) ?] ;
2828 ) => {
29- pub ( crate ) static $name: LazyLock <(
30- BTreeMap <& ' static [ Symbol ] , Vec <Box <dyn Fn ( & AcceptContext <' _>, & ArgParser <' _>) + Send + Sync >>>,
31- Vec <Box <dyn Send + Sync + Fn ( & FinalizeContext <' _>) -> Option <AttributeKind >>>
32- ) > = LazyLock :: new( || {
33- let mut accepts = BTreeMap :: <_, Vec <Box <dyn Fn ( & AcceptContext <' _>, & ArgParser <' _>) + Send + Sync >>>:: new( ) ;
34- let mut finalizes = Vec :: <Box <dyn Send + Sync + Fn ( & FinalizeContext <' _>) -> Option <AttributeKind >>>:: new( ) ;
29+ type Accepts = BTreeMap <
30+ & ' static [ Symbol ] ,
31+ Vec <Box <dyn Send + Sync + Fn ( & AcceptContext <' _>, & ArgParser <' _>) >>
32+ >;
33+ type Finalizes = Vec <
34+ Box <dyn Send + Sync + Fn ( & FinalizeContext <' _>) -> Option <AttributeKind >>
35+ >;
36+ pub ( crate ) static $name: LazyLock <( Accepts , Finalizes ) > = LazyLock :: new( || {
37+ let mut accepts = Accepts :: new( ) ;
38+ let mut finalizes = Finalizes :: new( ) ;
3539 $(
3640 {
3741 thread_local! {
You can’t perform that action at this time.
0 commit comments