Skip to content

Commit 5164598

Browse files
committedFeb 15, 2020
Add additional comment
1 parent 51a16e5 commit 5164598

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/libsyntax/ast.rs

+6
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,12 @@ pub struct Crate {
429429
pub module: Mod,
430430
pub attrs: Vec<Attribute>,
431431
pub span: Span,
432+
/// The order of items in the HIR is unrelated to the order of
433+
/// items in the AST. However, we generate proc macro harnesses
434+
/// based on the AST order, and later refer to these harnesses
435+
/// from the HIR. This field keeps track of the order in which
436+
/// we generated proc macros harnesses, so that we can map
437+
/// HIR proc macros items back to their harness items.
432438
pub proc_macros: Vec<NodeId>,
433439
}
434440

0 commit comments

Comments
 (0)