diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-10-25 15:23:45 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-10-26 09:50:51 +1300 |
| commit | 6dd5bb18d7a832add3f0cadb70897da6fd44892b (patch) | |
| tree | 69272f8552b8d145bc6161ef17fa2105422208d6 /src/libsyntax/ast.rs | |
| parent | 63ac2aae51034f93c23cffde7be711a86f9d139f (diff) | |
| download | rust-6dd5bb18d7a832add3f0cadb70897da6fd44892b.tar.gz rust-6dd5bb18d7a832add3f0cadb70897da6fd44892b.zip | |
more reviewer changes
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 |
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)) } } |
