mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
Add dummy impls for trace_macros
and log_syntax
This commit is contained in:
parent
142b6dc650
commit
54e6583f53
@ -113,6 +113,8 @@ register_builtin! {
|
|||||||
(cfg, Cfg) => cfg_expand,
|
(cfg, Cfg) => cfg_expand,
|
||||||
(core_panic, CorePanic) => panic_expand,
|
(core_panic, CorePanic) => panic_expand,
|
||||||
(std_panic, StdPanic) => panic_expand,
|
(std_panic, StdPanic) => panic_expand,
|
||||||
|
(log_syntax, LogSyntax) => log_syntax_expand,
|
||||||
|
(trace_macros, TraceMacros) => trace_macros_expand,
|
||||||
|
|
||||||
EAGER:
|
EAGER:
|
||||||
(compile_error, CompileError) => compile_error_expand,
|
(compile_error, CompileError) => compile_error_expand,
|
||||||
@ -148,6 +150,22 @@ fn line_expand(
|
|||||||
ExpandResult::ok(expanded)
|
ExpandResult::ok(expanded)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn log_syntax_expand(
|
||||||
|
_db: &dyn AstDatabase,
|
||||||
|
_id: MacroCallId,
|
||||||
|
_tt: &tt::Subtree,
|
||||||
|
) -> ExpandResult<tt::Subtree> {
|
||||||
|
ExpandResult::ok(quote! {})
|
||||||
|
}
|
||||||
|
|
||||||
|
fn trace_macros_expand(
|
||||||
|
_db: &dyn AstDatabase,
|
||||||
|
_id: MacroCallId,
|
||||||
|
_tt: &tt::Subtree,
|
||||||
|
) -> ExpandResult<tt::Subtree> {
|
||||||
|
ExpandResult::ok(quote! {})
|
||||||
|
}
|
||||||
|
|
||||||
fn stringify_expand(
|
fn stringify_expand(
|
||||||
_db: &dyn AstDatabase,
|
_db: &dyn AstDatabase,
|
||||||
_id: MacroCallId,
|
_id: MacroCallId,
|
||||||
|
@ -226,28 +226,30 @@ pub mod known {
|
|||||||
len,
|
len,
|
||||||
is_empty,
|
is_empty,
|
||||||
// Builtin macros
|
// Builtin macros
|
||||||
file,
|
asm,
|
||||||
column,
|
|
||||||
const_format_args,
|
|
||||||
compile_error,
|
|
||||||
line,
|
|
||||||
module_path,
|
|
||||||
assert,
|
assert,
|
||||||
core_panic,
|
column,
|
||||||
std_panic,
|
compile_error,
|
||||||
stringify,
|
|
||||||
concat,
|
|
||||||
concat_idents,
|
concat_idents,
|
||||||
include,
|
concat,
|
||||||
|
const_format_args,
|
||||||
|
core_panic,
|
||||||
|
env,
|
||||||
|
file,
|
||||||
|
format_args_nl,
|
||||||
|
format_args,
|
||||||
|
global_asm,
|
||||||
include_bytes,
|
include_bytes,
|
||||||
include_str,
|
include_str,
|
||||||
format_args,
|
include,
|
||||||
format_args_nl,
|
line,
|
||||||
env,
|
|
||||||
option_env,
|
|
||||||
llvm_asm,
|
llvm_asm,
|
||||||
asm,
|
log_syntax,
|
||||||
global_asm,
|
module_path,
|
||||||
|
option_env,
|
||||||
|
std_panic,
|
||||||
|
stringify,
|
||||||
|
trace_macros,
|
||||||
// Builtin derives
|
// Builtin derives
|
||||||
Copy,
|
Copy,
|
||||||
Clone,
|
Clone,
|
||||||
|
Loading…
Reference in New Issue
Block a user