]> git.lizzy.rs Git - rust.git/commit
Auto merge of #38232 - jseyfried:refactor_global_paths, r=nrc
authorbors <bors@rust-lang.org>
Fri, 23 Dec 2016 06:22:45 +0000 (06:22 +0000)
committerbors <bors@rust-lang.org>
Fri, 23 Dec 2016 06:22:45 +0000 (06:22 +0000)
commit82611a022468bb54476f149a0e77901ed48bcb9a
tree3ff453dfacae27d143767f47ff1c3d5e63576b57
parentc8e7ec4bfc71db24b4c3cb186480214bdc32a091
parent8a1acb2c690eeb11b5c3f2a26bf2d68741ed5844
Auto merge of #38232 - jseyfried:refactor_global_paths, r=nrc

Refactor global paths

This PR removes the field `global: bool` from `ast::Path` and `hir::Path`, instead representing a global path `::foo::bar` as `{{root}}::foo::bar`, where `{{root}}` is a virtual keyword `keywords::CrateRoot`.

Also, fixes #38016.

r? @nrc
src/librustc/hir/mod.rs
src/libsyntax/ast.rs