about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2018-10-25 15:23:45 +1300
committerNick Cameron <ncameron@mozilla.com>2018-10-26 09:50:51 +1300
commit6dd5bb18d7a832add3f0cadb70897da6fd44892b (patch)
tree69272f8552b8d145bc6161ef17fa2105422208d6 /src/libsyntax/ast.rs
parent63ac2aae51034f93c23cffde7be711a86f9d139f (diff)
downloadrust-6dd5bb18d7a832add3f0cadb70897da6fd44892b.tar.gz
rust-6dd5bb18d7a832add3f0cadb70897da6fd44892b.zip
more reviewer changes
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index d33077b336b..ee82b986005 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -145,11 +145,7 @@ impl PathSegment {
         PathSegment { ident, id: DUMMY_NODE_ID, args: None }
     }
     pub fn crate_root(span: Span) -> Self {
-        PathSegment {
-            ident: Ident::new(keywords::CrateRoot.name(), span),
-            id: DUMMY_NODE_ID,
-            args: None,
-        }
+        PathSegment::from_ident(Ident::new(keywords::CrateRoot.name(), span))
     }
 }