From b49da276b307a58c7b3e5d5332fa32bccfb32f77 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Thu, 6 Sep 2018 19:24:33 +1200 Subject: Store a resolved def on hir::PathSegment --- src/libsyntax/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 7548c298854..d33077b336b 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -147,7 +147,7 @@ impl PathSegment { pub fn crate_root(span: Span) -> Self { PathSegment { ident: Ident::new(keywords::CrateRoot.name(), span), - id: CRATE_NODE_ID, + id: DUMMY_NODE_ID, args: None, } } -- cgit 1.4.1-3-g733a5