Skip to content

Commit e02789c

Browse files
committed
Improve formatting in associated_item! definition.
1 parent a61a85e commit e02789c

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

library/proc_macro/src/bridge/server.rs

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,25 @@ use super::client::HandleStore;
88
/// Declare an associated item of one of the traits below, optionally
99
/// adjusting it (i.e., adding bounds to types and default bodies to methods).
1010
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+
3524
(fn drop(&mut self, $arg:ident: $arg_ty:ty)) =>
3625
(fn drop(&mut self, $arg: $arg_ty) { mem::drop($arg) });
26+
3727
(fn clone(&mut self, $arg:ident: $arg_ty:ty) -> $ret_ty:ty) =>
3828
(fn clone(&mut self, $arg: $arg_ty) -> $ret_ty { $arg.clone() });
29+
3930
($($item:tt)*) => ($($item)*;)
4031
}
4132

0 commit comments

Comments
 (0)