Skip to content

Commit cc2fe7b

Browse files
Michael Benfieldmikebenfield
authored andcommitted
Create absolute path in try_atom
1 parent d702ca8 commit cc2fe7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/passes/src/common_subexpression_elimination

compiler/passes/src/common_subexpression_elimination/visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl CommonSubexpressionEliminatingVisitor<'_> {
8484
*path = Path::new(
8585
Vec::new(),
8686
Identifier::new(*name, self.state.node_builder.next_id()),
87-
None,
87+
Some(vec![*name]),
8888
path.span(),
8989
self.state.node_builder.next_id(),
9090
);

0 commit comments

Comments
 (0)