Useconst _ instead of mod __

This commit is contained in:
Jonas Schievink 2022-01-06 12:55:33 +01:00
parent 7585127b92
commit 9dd42cd1e1

View file

@ -445,13 +445,10 @@ impl ast::AstNode for NameLike {
}
}
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 {