11209: minor: Use`const _` instead of `mod __` r=jonas-schievink a=jonas-schievink

We now handle it correctly

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
This commit is contained in:
bors[bot] 2022-01-06 11:56:29 +00:00 committed by GitHub
commit 4a1e4eed65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,13 +445,10 @@ fn syntax(&self) -> &SyntaxNode {
} }
} }
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 {