diff options
| author | Jakub Wieczorek <jakub@jakub.cc> | 2014-10-11 19:24:58 +0200 |
|---|---|---|
| committer | Jakub Wieczorek <jakub@jakub.cc> | 2014-10-11 19:42:26 +0200 |
| commit | 403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875 (patch) | |
| tree | df9a8e78271637c38f85af47a25461f91952424c /src/libsyntax/config.rs | |
| parent | 9b9833299245cc1eac68b52169e9152d0f412d6b (diff) | |
| download | rust-403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875.tar.gz rust-403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875.zip | |
Remove `virtual` structs from the language
Diffstat (limited to 'src/libsyntax/config.rs')
| -rw-r--r-- | src/libsyntax/config.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/config.rs b/src/libsyntax/config.rs index 9b4748f88ab..a53be6097fd 100644 --- a/src/libsyntax/config.rs +++ b/src/libsyntax/config.rs @@ -158,14 +158,12 @@ fn fold_item_underscore(cx: &mut Context, item: ast::Item_) -> ast::Item_ { } fn fold_struct(cx: &mut Context, def: P<ast::StructDef>) -> P<ast::StructDef> { - def.map(|ast::StructDef {fields, ctor_id, super_struct, is_virtual}| { + def.map(|ast::StructDef { fields, ctor_id }| { ast::StructDef { fields: fields.into_iter().filter(|m| { (cx.in_cfg)(m.node.attrs.as_slice()) }).collect(), ctor_id: ctor_id, - super_struct: super_struct, - is_virtual: is_virtual, } }) } |
