mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Implement server::Span::Join
This commit is contained in:
parent
6be83b8204
commit
428a34a9b4
7 changed files with 148 additions and 75 deletions
|
@ -108,6 +108,7 @@ register_builtin! {
|
|||
(format_args, FormatArgs) => format_args_expand,
|
||||
(const_format_args, ConstFormatArgs) => format_args_expand,
|
||||
(format_args_nl, FormatArgsNl) => format_args_nl_expand,
|
||||
(quote, Quote) => quote_expand,
|
||||
|
||||
EAGER:
|
||||
(compile_error, CompileError) => compile_error_expand,
|
||||
|
@ -770,3 +771,12 @@ fn option_env_expand(
|
|||
|
||||
ExpandResult::ok(expanded)
|
||||
}
|
||||
|
||||
fn quote_expand(
|
||||
_db: &dyn ExpandDatabase,
|
||||
_arg_id: MacroCallId,
|
||||
_tt: &tt::Subtree,
|
||||
_span: SpanData,
|
||||
) -> ExpandResult<tt::Subtree> {
|
||||
ExpandResult::only_err(ExpandError::other("quote! is not implemented"))
|
||||
}
|
||||
|
|
|
@ -388,6 +388,7 @@ pub mod known {
|
|||
log_syntax,
|
||||
module_path,
|
||||
option_env,
|
||||
quote,
|
||||
std_panic,
|
||||
stringify,
|
||||
trace_macros,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue