Skip to content

Commit 9a785e0

Browse files
committed
Clarify a comment.
`reverse_encode` isn't necessary to please the borrow checker, it's to match the ordering done by `reverse_decode`.
1 parent bc70d0d commit 9a785e0

File tree

1 file changed

+1
-1
lines changed
  • library/proc_macro/src/bridge

1 file changed

+1
-1
lines changed

library/proc_macro/src/bridge/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ macro_rules! with_api {
176176
}
177177

178178
// FIXME(eddyb) this calls `encode` for each argument, but in reverse,
179-
// to avoid borrow conflicts from borrows started by `&mut` arguments.
179+
// to match the ordering in `reverse_decode`.
180180
macro_rules! reverse_encode {
181181
($writer:ident;) => {};
182182
($writer:ident; $first:ident $(, $rest:ident)*) => {

0 commit comments

Comments
 (0)