mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
fix: Fix span marking for builtin fn macros
This commit is contained in:
parent
1e1113cf5f
commit
5bdb479131
10 changed files with 153 additions and 57 deletions
|
@ -1381,6 +1381,7 @@ mod macros {
|
|||
// region:assert
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
#[allow_internal_unstable(core_panic, edition_panic, generic_assert_internals)]
|
||||
macro_rules! assert {
|
||||
($($arg:tt)*) => {
|
||||
/* compiler built-in */
|
||||
|
@ -1389,6 +1390,7 @@ mod macros {
|
|||
// endregion:assert
|
||||
|
||||
// region:fmt
|
||||
#[allow_internal_unstable(fmt_internals, const_fmt_arguments_new)]
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! const_format_args {
|
||||
|
@ -1396,6 +1398,7 @@ mod macros {
|
|||
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
#[allow_internal_unstable(fmt_internals)]
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! format_args {
|
||||
|
@ -1403,6 +1406,7 @@ mod macros {
|
|||
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
#[allow_internal_unstable(fmt_internals)]
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! format_args_nl {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue