diff options
| author | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-01-06 12:55:33 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-01-06 12:55:33 +0100 |
| commit | 9dd42cd1e1a090d4ab2c8250ecef0a1abe990ee5 (patch) | |
| tree | 40b4cad247bc4e4e2f917fd4127a76d507109b64 | |
| parent | 7585127b92c8669e9a08b7853c547935f8f66c50 (diff) | |
| download | rust-9dd42cd1e1a090d4ab2c8250ecef0a1abe990ee5.tar.gz rust-9dd42cd1e1a090d4ab2c8250ecef0a1abe990ee5.zip | |
Use`const _` instead of `mod __`
| -rw-r--r-- | crates/syntax/src/ast/node_ext.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 749581b1ce9..7dd9ac1e9e1 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs @@ -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 { |
