Since LLVM 19, it is necessary to set not only module flags, but also function attributes for branch protection on aarch64. See e15d67cfc2 for the relevant LLVM change.
e15d67cfc2
ExpressionUsed
Code
#[macro_use] extern crate tracing
rustc_codegen_llvm
subdiagnostic
f16
f128