File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 2929// are unique). Every new node must have a unique id. Avoid cloning HIR nodes.
3030// If you do, you must then set the new node's id to a fresh one.
3131//
32- // We must also cache gensym'ed Idents to ensure that we get the same Ident
33- // every time we lower a node with gensym'ed names. One consequence of this is
34- // that you can only gensym a name once in a lowering (you don't need to worry
35- // about nested lowering though). That's because we cache based on the name and
36- // the currently cached node id, which is unique per lowered node.
37- //
3832// Spans are used for error messages and for tools to map semantics back to
3933// source code. It is therefore not as important with spans as ids to be strict
4034// about use (you can't break the compiler by screwing up a span). Obviously, a
You can’t perform that action at this time.
0 commit comments