https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106072
--- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> --- At least when building the devel/rust/master branch as of 20221111, the warning doesn't occur any longer. I haven't investigated why, though.