Clarify a comment.

`reverse_encode` isn't necessary to please the borrow checker, it's to
match the ordering done by `reverse_decode`.
This commit is contained in:
Nicholas Nethercote 2022-05-13 15:57:55 +10:00
parent bc70d0db92
commit 9a785e0aa5

View File

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