Make FnAbiError Copy.

This commit is contained in:
Camille GILLOT 2022-02-01 18:44:45 +01:00
parent 96340e5668
commit 1b2337c19d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -397,7 +397,7 @@ impl<'gcc, 'tcx> FnAbiOfHelpers<'tcx> for CodegenCx<'gcc, 'tcx> {
#[inline]
fn handle_fn_abi_err(
&self,
err: &'tcx FnAbiError<'tcx>,
err: FnAbiError<'tcx>,
span: Span,
fn_abi_request: FnAbiRequest<'tcx>,
) -> ! {