diff options
author | Florian Diebold <[email protected]> | 2019-12-13 21:01:06 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-12-13 21:33:38 +0000 |
commit | 6911bc89a784ce72b4dfd8e0ba72bd22ce898395 (patch) | |
tree | 7ca2a4f415d0c9b95e29a05172cb6105aaa5065b /crates/ra_hir_expand | |
parent | 259c42f00e2e85594c7373166bc8467ce375a045 (diff) |
Rename N! to name!
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/builtin_derive.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/builtin_macro.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/name.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs index d7f8ada78..b26441253 100644 --- a/crates/ra_hir_expand/src/builtin_derive.rs +++ b/crates/ra_hir_expand/src/builtin_derive.rs | |||
@@ -34,7 +34,7 @@ macro_rules! register_builtin { | |||
34 | 34 | ||
35 | pub fn find_builtin_derive(ident: &name::Name) -> Option<MacroDefId> { | 35 | pub fn find_builtin_derive(ident: &name::Name) -> Option<MacroDefId> { |
36 | let kind = match ident { | 36 | let kind = match ident { |
37 | $( id if id == &name::N![$trait] => BuiltinDeriveExpander::$trait, )* | 37 | $( id if id == &name::name![$trait] => BuiltinDeriveExpander::$trait, )* |
38 | _ => return None, | 38 | _ => return None, |
39 | }; | 39 | }; |
40 | 40 | ||
diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/ra_hir_expand/src/builtin_macro.rs index e5046ad4c..d2b3d769e 100644 --- a/crates/ra_hir_expand/src/builtin_macro.rs +++ b/crates/ra_hir_expand/src/builtin_macro.rs | |||
@@ -34,7 +34,7 @@ macro_rules! register_builtin { | |||
34 | ast_id: AstId<ast::MacroCall>, | 34 | ast_id: AstId<ast::MacroCall>, |
35 | ) -> Option<MacroDefId> { | 35 | ) -> Option<MacroDefId> { |
36 | let kind = match ident { | 36 | let kind = match ident { |
37 | $( id if id == &name::N![$name] => BuiltinFnLikeExpander::$kind, )* | 37 | $( id if id == &name::name![$name] => BuiltinFnLikeExpander::$kind, )* |
38 | _ => return None, | 38 | _ => return None, |
39 | }; | 39 | }; |
40 | 40 | ||
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs index 8b3141d75..59d8214fd 100644 --- a/crates/ra_hir_expand/src/name.rs +++ b/crates/ra_hir_expand/src/name.rs | |||
@@ -186,7 +186,7 @@ pub mod known { | |||
186 | pub const SELF_TYPE: super::Name = super::Name::new_inline_ascii(b"Self"); | 186 | pub const SELF_TYPE: super::Name = super::Name::new_inline_ascii(b"Self"); |
187 | 187 | ||
188 | #[macro_export] | 188 | #[macro_export] |
189 | macro_rules! N { | 189 | macro_rules! name { |
190 | (self) => { | 190 | (self) => { |
191 | $crate::name::known::SELF_PARAM | 191 | $crate::name::known::SELF_PARAM |
192 | }; | 192 | }; |
@@ -199,4 +199,4 @@ pub mod known { | |||
199 | } | 199 | } |
200 | } | 200 | } |
201 | 201 | ||
202 | pub use crate::N; | 202 | pub use crate::name; |