]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/metadata/encoder.rs
rollup merge of #19317: sfackler/xcrate-namespace
[rust.git] / src / librustc / metadata / encoder.rs
index 8c21e559ec1f80a1418bdc5d15a15c6e2ce0fccb..d65fb9d2778becd2678bfb59126649cad032a9a0 100644 (file)
@@ -500,20 +500,10 @@ fn encode_reexported_static_methods(ecx: &EncodeContext,
 /// Iterates through "auxiliary node IDs", which are node IDs that describe
 /// top-level items that are sub-items of the given item. Specifically:
 ///
-/// * For enums, iterates through the node IDs of the variants.
-///
 /// * For newtype structs, iterates through the node ID of the constructor.
 fn each_auxiliary_node_id(item: &ast::Item, callback: |NodeId| -> bool) -> bool {
     let mut continue_ = true;
     match item.node {
-        ast::ItemEnum(ref enum_def, _) => {
-            for variant in enum_def.variants.iter() {
-                continue_ = callback(variant.node.id);
-                if !continue_ {
-                    break
-                }
-            }
-        }
         ast::ItemStruct(ref struct_def, _) => {
             // If this is a newtype struct, return the constructor.
             match struct_def.ctor_id {