Auto merge of #82076 - jyn514:update-bootstrap, r=Mark-Simulacrum
Update the bootstrap compiler This updates the bootstrap compiler, notably leaving out a change to enable semicolon in macro expressions lint, because stdarch still depends on the old behavior.
This commit is contained in:
commit
cd64446196
16 changed files with 49 additions and 115 deletions
|
@ -1,25 +1,3 @@
|
|||
#[cfg(bootstrap)]
|
||||
#[doc(include = "panic.md")]
|
||||
#[macro_export]
|
||||
#[allow_internal_unstable(core_panic)]
|
||||
#[stable(feature = "core", since = "1.6.0")]
|
||||
#[rustc_diagnostic_item = "core_panic_macro"]
|
||||
macro_rules! panic {
|
||||
() => (
|
||||
$crate::panic!("explicit panic")
|
||||
);
|
||||
($msg:literal $(,)?) => (
|
||||
$crate::panicking::panic($msg)
|
||||
);
|
||||
($msg:expr $(,)?) => (
|
||||
$crate::panicking::panic_str($msg)
|
||||
);
|
||||
($fmt:expr, $($arg:tt)+) => (
|
||||
$crate::panicking::panic_fmt($crate::format_args!($fmt, $($arg)+))
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[doc(include = "panic.md")]
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro = "core_panic"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue