We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a16e5 commit 5164598Copy full SHA for 5164598
src/libsyntax/ast.rs
@@ -429,6 +429,12 @@ pub struct Crate {
429
pub module: Mod,
430
pub attrs: Vec<Attribute>,
431
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.
438
pub proc_macros: Vec<NodeId>,
439
}
440
0 commit comments