Skip to content

Commit 4a1e4ee

Browse files
bors[bot]Jonas Schievink
andauthored
Merge #11209
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 <[email protected]>
2 parents 7585127 + 9dd42cd commit 4a1e4ee

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/syntax/src/ast/node_ext.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,10 @@ impl ast::AstNode for NameLike {
445445
}
446446
}
447447

448-
mod __ {
449-
use super::{
450-
ast::{Lifetime, Name, NameRef},
451-
NameLike,
452-
};
448+
const _: () = {
449+
use ast::{Lifetime, Name, NameRef};
453450
stdx::impl_from!(NameRef, Name, Lifetime for NameLike);
454-
}
451+
};
455452

456453
#[derive(Debug, Clone, PartialEq)]
457454
pub enum NameOrNameRef {

0 commit comments

Comments
 (0)