about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-01 18:44:45 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-02-09 20:11:29 +0100
commitcf9c65bb585a9bf73d32055ceff4d5c809385879 (patch)
tree08104273a5f7b9ce940119dc82bafbf492d34d7f /src
parentd416c68114e11309b4a1a41cd267afa31a5b02c1 (diff)
downloadrust-cf9c65bb585a9bf73d32055ceff4d5c809385879.tar.gz
rust-cf9c65bb585a9bf73d32055ceff4d5c809385879.zip
Make FnAbiError Copy.
Diffstat (limited to 'src')
-rw-r--r--src/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.rs b/src/common.rs
index 79d85554514..3b6025c73d1 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -274,7 +274,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for FunctionCx<'_, '_, 'tcx> {
     #[inline]
     fn handle_fn_abi_err(
         &self,
-        err: &'tcx FnAbiError<'tcx>,
+        err: FnAbiError<'tcx>,
         span: Span,
         fn_abi_request: FnAbiRequest<'tcx>,
     ) -> ! {
@@ -396,7 +396,7 @@ impl<'tcx> FnAbiOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> {
     #[inline]
     fn handle_fn_abi_err(
         &self,
-        err: &'tcx FnAbiError<'tcx>,
+        err: FnAbiError<'tcx>,
         span: Span,
         fn_abi_request: FnAbiRequest<'tcx>,
     ) -> ! {