File tree 2 files changed +11
-0
lines changed 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ register_builtin! {
88
88
( column, Column ) => column_expand,
89
89
( file, File ) => file_expand,
90
90
( line, Line ) => line_expand,
91
+ ( module_path, ModulePath ) => module_path_expand,
91
92
( assert, Assert ) => assert_expand,
92
93
( stringify, Stringify ) => stringify_expand,
93
94
( format_args, FormatArgs ) => format_args_expand,
@@ -105,6 +106,15 @@ register_builtin! {
105
106
( option_env, OptionEnv ) => option_env_expand
106
107
}
107
108
109
+ fn module_path_expand (
110
+ _db : & dyn AstDatabase ,
111
+ _id : LazyMacroId ,
112
+ _tt : & tt:: Subtree ,
113
+ ) -> ExpandResult < tt:: Subtree > {
114
+ // Just return a dummy result.
115
+ ExpandResult :: ok ( quote ! { "module::path" } )
116
+ }
117
+
108
118
fn line_expand (
109
119
_db : & dyn AstDatabase ,
110
120
_id : LazyMacroId ,
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ pub mod known {
188
188
column,
189
189
compile_error,
190
190
line,
191
+ module_path,
191
192
assert,
192
193
stringify,
193
194
concat,
You can’t perform that action at this time.
0 commit comments