From 9a785e0aa546b45b8723bee13956459276f96cbe Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 13 May 2022 15:57:55 +1000 Subject: [PATCH] Clarify a comment. `reverse_encode` isn't necessary to please the borrow checker, it's to match the ordering done by `reverse_decode`. --- library/proc_macro/src/bridge/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/proc_macro/src/bridge/mod.rs b/library/proc_macro/src/bridge/mod.rs index c547bb758b0..b6b7109135a 100644 --- a/library/proc_macro/src/bridge/mod.rs +++ b/library/proc_macro/src/bridge/mod.rs @@ -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)*) => {