mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Useconst _
instead of mod __
This commit is contained in:
parent
7585127b92
commit
9dd42cd1e1
1 changed files with 3 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue