Auto merge of #27451 - seanmonstar:use-groups-as, r=alexcrichton

An implementation of [RFC 1219](https://github.com/rust-lang/rfcs/pull/1219).

The RFC is not merged yet, but once merged, this could be.
This commit is contained in:
bors
2015-08-10 20:24:06 +00:00
16 changed files with 170 additions and 34 deletions

View File

@@ -335,13 +335,17 @@ pub fn noop_fold_view_path<T: Folder>(view_path: P<ViewPath>, fld: &mut T) -> P<
path_list_idents.move_map(|path_list_ident| {
Spanned {
node: match path_list_ident.node {
PathListIdent { id, name } =>
PathListIdent { id, name, rename } =>
PathListIdent {
id: fld.new_id(id),
rename: rename,
name: name
},
PathListMod { id } =>
PathListMod { id: fld.new_id(id) }
PathListMod { id, rename } =>
PathListMod {
id: fld.new_id(id),
rename: rename
}
},
span: fld.new_span(path_list_ident.span)
}