File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,7 @@ fn bind_and_accept(addr: SocketAddr)
138
138
## Implementation
139
139
140
140
The ` stream! ` and ` try_stream! ` macros are implemented using proc macros.
141
- Given that proc macros in expression position are not supported on stable
142
- rust, a hack similar to the one provided by the [ ` proc-macro-hack ` ] crate is
143
- used. The macro searches the syntax tree for instances of ` sender.send($expr) ` and
141
+ The macro searches the syntax tree for instances of ` sender.send($expr) ` and
144
142
transforms them into ` sender.send($expr).await ` .
145
143
146
144
The stream uses a lightweight sender to send values from the stream
Original file line number Diff line number Diff line change 145
145
//! # Implementation
146
146
//!
147
147
//! The `stream!` and `try_stream!` macros are implemented using proc macros.
148
- //! Given that proc macros in expression position are not supported on stable
149
- //! rust, a hack similar to the one provided by the [`proc-macro-hack`] crate is
150
- //! used. The macro searches the syntax tree for instances of `sender.send($expr)` and
148
+ //! The macro searches the syntax tree for instances of `sender.send($expr)` and
151
149
//! transforms them into `sender.send($expr).await`.
152
150
//!
153
151
//! The stream uses a lightweight sender to send values from the stream
You can’t perform that action at this time.
0 commit comments