Skip to content

Commit c2c034a

Browse files
committed
tests: accept some noise from LLVM 21 in symbols-all-mangled
I'm not entirely sure this is correct, but it doesn't feel obviously-wrong so I figured I'd just start by sending a PR rather than filing a bug and letting it linger. @rustbot label llvm-main
1 parent 75530e9 commit c2c034a

File tree

1 file changed

+12
-1
lines changed
  • tests/run-make/symbols-all-mangled

1 file changed

+12
-1
lines changed

tests/run-make/symbols-all-mangled/rmake.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,18 @@ fn symbols_check_archive(path: &str) {
4141
continue; // Unfortunately LLVM doesn't allow us to mangle this symbol
4242
}
4343

44-
panic!("Unmangled symbol found: {name}");
44+
if name.starts_with("anon.") && name.contains(".llvm.") {
45+
// Starting in LLVM 21 we see anonymous functions from libcore that look like
46+
// anon.ae38fc0c63519f015fe99b15e38f558a.2.llvm.10001621870744393187
47+
continue;
48+
}
49+
50+
if name.starts_with("_rust_extern_with_linkage___dso_handle.llvm") {
51+
// We see this with LLVM 21 as well.
52+
continue;
53+
}
54+
55+
panic!("Unmangled symbol found in {path}: {name}");
4556
}
4657
}
4758

0 commit comments

Comments
 (0)