@@ -8,34 +8,25 @@ use super::client::HandleStore;
8
8
/// Declare an associated item of one of the traits below, optionally
9
9
/// adjusting it (i.e., adding bounds to types and default bodies to methods).
10
10
macro_rules! associated_item {
11
- ( type FreeFunctions ) =>
12
- ( type FreeFunctions : ' static ; ) ;
13
- ( type TokenStream ) =>
14
- ( type TokenStream : ' static + Clone ; ) ;
15
- ( type TokenStreamBuilder ) =>
16
- ( type TokenStreamBuilder : ' static ; ) ;
17
- ( type TokenStreamIter ) =>
18
- ( type TokenStreamIter : ' static + Clone ; ) ;
19
- ( type Group ) =>
20
- ( type Group : ' static + Clone ; ) ;
21
- ( type Punct ) =>
22
- ( type Punct : ' static + Copy + Eq + Hash ; ) ;
23
- ( type Ident ) =>
24
- ( type Ident : ' static + Copy + Eq + Hash ; ) ;
25
- ( type Literal ) =>
26
- ( type Literal : ' static + Clone ; ) ;
27
- ( type SourceFile ) =>
28
- ( type SourceFile : ' static + Clone ; ) ;
29
- ( type MultiSpan ) =>
30
- ( type MultiSpan : ' static ; ) ;
31
- ( type Diagnostic ) =>
32
- ( type Diagnostic : ' static ; ) ;
33
- ( type Span ) =>
34
- ( type Span : ' static + Copy + Eq + Hash ; ) ;
11
+ ( type FreeFunctions ) => ( type FreeFunctions : ' static ; ) ;
12
+ ( type TokenStream ) => ( type TokenStream : ' static + Clone ; ) ;
13
+ ( type TokenStreamBuilder ) => ( type TokenStreamBuilder : ' static ; ) ;
14
+ ( type TokenStreamIter ) => ( type TokenStreamIter : ' static + Clone ; ) ;
15
+ ( type Group ) => ( type Group : ' static + Clone ; ) ;
16
+ ( type Punct ) => ( type Punct : ' static + Copy + Eq + Hash ; ) ;
17
+ ( type Ident ) => ( type Ident : ' static + Copy + Eq + Hash ; ) ;
18
+ ( type Literal ) => ( type Literal : ' static + Clone ; ) ;
19
+ ( type SourceFile ) => ( type SourceFile : ' static + Clone ; ) ;
20
+ ( type MultiSpan ) => ( type MultiSpan : ' static ; ) ;
21
+ ( type Diagnostic ) => ( type Diagnostic : ' static ; ) ;
22
+ ( type Span ) => ( type Span : ' static + Copy + Eq + Hash ; ) ;
23
+
35
24
( fn drop( & mut self , $arg: ident: $arg_ty: ty) ) =>
36
25
( fn drop( & mut self , $arg: $arg_ty) { mem:: drop( $arg) } ) ;
26
+
37
27
( fn clone( & mut self , $arg: ident: $arg_ty: ty) -> $ret_ty: ty) =>
38
28
( fn clone( & mut self , $arg: $arg_ty) -> $ret_ty { $arg. clone( ) } ) ;
29
+
39
30
( $( $item: tt) * ) => ( $( $item) * ; )
40
31
}
41
32
0 commit comments