rustc_builtin_macros::edition_panic

Function expand_unreachable

Source
pub(crate) fn expand_unreachable<'cx>(
    cx: &'cx mut ExtCtxt<'_>,
    sp: Span,
    tts: TokenStream,
) -> MacroExpanderResult<'cx>
Expand description

This expands to either

  • $crate::panic::unreachable_2015!(...) or
  • $crate::panic::unreachable_2021!(...) depending on the edition.