lang/rust fails to build from source after upgrading Perl to 5.36

From: William Bulley <web_at_umich.edu>
Date: Sun, 22 Oct 2023 20:55:46 UTC
In my attempt to upgrade to Perl 5.36 several other ports were
affected and had to be rebuilt/reinstalled.  One of these was
lang/rust -- which failed to build (I can send error strings).
  
However, I decided to try downloading the lang/rust package
and work around the build-from-source problems I was having.
  
I did that, and look what happened (note the version of Perl):
  
 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  
unix# pwd
/usr/ports
unix# pkg install lang/rust
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.pkg: 100%    7 MiB   1.4MB/s    00:05
Processing entries: 100%
FreeBSD repository update completed. 34120 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 2 package(s) will be affected (of 0 checked):
  
New packages to be INSTALLED:
        perl5.34: 5.34.1_3
        rust: 1.72.0
  
Number of packages to be installed: 2
  
The process will require 1 GiB more space.
144 MiB to be downloaded.

Proceed with this action? [y/N]: N

 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

This defeats updating Perl from 5.34 to 5.36 -- what am I to do?

-- 
William Bulley
E-MAIL: web@umich.edu
<web@umich.edu>