diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 749581b1ce9..7dd9ac1e9e1 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs @@ -445,13 +445,10 @@ fn syntax(&self) -> &SyntaxNode { } } -mod __ { - use super::{ - ast::{Lifetime, Name, NameRef}, - NameLike, - }; +const _: () = { + use ast::{Lifetime, Name, NameRef}; stdx::impl_from!(NameRef, Name, Lifetime for NameLike); -} +}; #[derive(Debug, Clone, PartialEq)] pub enum NameOrNameRef {