diff options
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index c8f090c22..3b206ef85 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs | |||
@@ -485,8 +485,6 @@ impl Ctx { | |||
485 | } | 485 | } |
486 | 486 | ||
487 | fn lower_use(&mut self, use_item: &ast::Use) -> Vec<FileItemTreeId<Import>> { | 487 | fn lower_use(&mut self, use_item: &ast::Use) -> Vec<FileItemTreeId<Import>> { |
488 | // FIXME: cfg_attr | ||
489 | let is_prelude = use_item.has_atom_attr("prelude_import"); | ||
490 | let visibility = self.lower_visibility(use_item); | 488 | let visibility = self.lower_visibility(use_item); |
491 | let ast_id = self.source_ast_id_map.ast_id(use_item); | 489 | let ast_id = self.source_ast_id_map.ast_id(use_item); |
492 | 490 | ||
@@ -502,7 +500,6 @@ impl Ctx { | |||
502 | alias, | 500 | alias, |
503 | visibility, | 501 | visibility, |
504 | is_glob, | 502 | is_glob, |
505 | is_prelude, | ||
506 | ast_id, | 503 | ast_id, |
507 | index: imports.len(), | 504 | index: imports.len(), |
508 | }))); | 505 | }))); |
@@ -522,10 +519,8 @@ impl Ctx { | |||
522 | }); | 519 | }); |
523 | let visibility = self.lower_visibility(extern_crate); | 520 | let visibility = self.lower_visibility(extern_crate); |
524 | let ast_id = self.source_ast_id_map.ast_id(extern_crate); | 521 | let ast_id = self.source_ast_id_map.ast_id(extern_crate); |
525 | // FIXME: cfg_attr | ||
526 | let is_macro_use = extern_crate.has_atom_attr("macro_use"); | ||
527 | 522 | ||
528 | let res = ExternCrate { name, alias, visibility, is_macro_use, ast_id }; | 523 | let res = ExternCrate { name, alias, visibility, ast_id }; |
529 | Some(id(self.data().extern_crates.alloc(res))) | 524 | Some(id(self.data().extern_crates.alloc(res))) |
530 | } | 525 | } |
531 | 526 | ||