fix: Fix span marking for builtin fn macros

This commit is contained in:
Lukas Wirth 2023-12-21 16:20:27 +01:00
parent 1e1113cf5f
commit 5bdb479131
10 changed files with 153 additions and 57 deletions

View file

@ -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 {