Skip to content

Commit ced4aa4

Browse files
committed
drive-by fix: use correct span in visit_anon_const
1 parent 0bde180 commit ced4aa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_ast_lowering/src/index.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ impl<'a, 'hir> Visitor<'hir> for NodeCollector<'a, 'hir> {
235235
}
236236

237237
fn visit_anon_const(&mut self, constant: &'hir AnonConst) {
238-
// FIXME: use real span?
239-
self.insert(DUMMY_SP, constant.hir_id, Node::AnonConst(constant));
238+
self.insert(constant.span, constant.hir_id, Node::AnonConst(constant));
240239

241240
self.with_parent(constant.hir_id, |this| {
242241
intravisit::walk_anon_const(this, constant);

0 commit comments

Comments
 (0)