mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +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 __ {
|
const _: () = {
|
||||||
use super::{
|
use ast::{Lifetime, Name, NameRef};
|
||||||
ast::{Lifetime, Name, NameRef},
|
|
||||||
NameLike,
|
|
||||||
};
|
|
||||||
stdx::impl_from!(NameRef, Name, Lifetime for NameLike);
|
stdx::impl_from!(NameRef, Name, Lifetime for NameLike);
|
||||||
}
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum NameOrNameRef {
|
pub enum NameOrNameRef {
|
||||||
|
|
Loading…
Reference in a new issue