Make FnAbiError Copy.

This commit is contained in:
Camille GILLOT 2022-02-01 18:44:45 +01:00
parent d416c68114
commit cf9c65bb58

View File

@ -274,7 +274,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for FunctionCx<'_, '_, 'tcx> {
#[inline] #[inline]
fn handle_fn_abi_err( fn handle_fn_abi_err(
&self, &self,
err: &'tcx FnAbiError<'tcx>, err: FnAbiError<'tcx>,
span: Span, span: Span,
fn_abi_request: FnAbiRequest<'tcx>, fn_abi_request: FnAbiRequest<'tcx>,
) -> ! { ) -> ! {
@ -396,7 +396,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> {
#[inline] #[inline]
fn handle_fn_abi_err( fn handle_fn_abi_err(
&self, &self,
err: &'tcx FnAbiError<'tcx>, err: FnAbiError<'tcx>,
span: Span, span: Span,
fn_abi_request: FnAbiRequest<'tcx>, fn_abi_request: FnAbiRequest<'tcx>,
) -> ! { ) -> ! {