From 516459870cf0fe13979aaa568bfc413e2e5bba18 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sat, 15 Feb 2020 15:51:40 -0500 Subject: Add additional comment --- src/libsyntax/ast.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 1973733288b..d101473d76b 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -429,6 +429,12 @@ pub struct Crate { pub module: Mod, pub attrs: Vec, pub span: Span, + /// The order of items in the HIR is unrelated to the order of + /// items in the AST. However, we generate proc macro harnesses + /// based on the AST order, and later refer to these harnesses + /// from the HIR. This field keeps track of the order in which + /// we generated proc macros harnesses, so that we can map + /// HIR proc macros items back to their harness items. pub proc_macros: Vec, } -- cgit 1.4.1-3-g733a5