Seems this doesn't trigger error on LLVM 15, but let's fix it for better compatibility.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.