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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index a15125c3d4..9381ca39f7 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -449,7 +449,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_string().starts_with("_DERIVE_")) { + 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; |