Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/item_tree/lower.rs')
| -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 e9af991785..4396801116 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -375,12 +375,7 @@ impl<'a> Ctx<'a> { } fn lower_const(&mut self, konst: &ast::Const) -> FileItemTreeId<Const> { - let mut name = konst.name().map(|it| it.as_name()); - if name.as_ref().map_or(false, |n| n.to_smol_str().starts_with("_DERIVE_")) { - // FIXME: this is a hack to treat consts generated by synstructure as unnamed - // remove this some time in the future - name = None; - } + let name = konst.name().map(|it| it.as_name()); let type_ref = self.lower_type_ref_opt(konst.ty()); let visibility = self.lower_visibility(konst); let ast_id = self.source_ast_id_map.ast_id(konst); |