about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-01-30 16:57:48 +0100
committerGitHub <noreply@github.com>2024-01-30 16:57:48 +0100
commit6a1d34f32ab842cc781dab7d0c6e95008d3fdeaf (patch)
treecf611128c95f450721878980ea0c549c5943a79a
parent4f4ceefe161fef0f5d8785b26c5b3bf2c38b47f5 (diff)
parente23937c6d32410ef00420c4656d250b4be0064c8 (diff)
downloadrust-6a1d34f32ab842cc781dab7d0c6e95008d3fdeaf.tar.gz
rust-6a1d34f32ab842cc781dab7d0c6e95008d3fdeaf.zip
Rollup merge of #120310 - krasimirgg:jan-v0-sym, r=Mark-Simulacrum
adapt test for v0 symbol mangling

No functional changes intended.

Adapts the test to also work under `new-symbol-mangling = true`.
-rw-r--r--tests/codegen/infallible-unwrap-in-opt-z.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/infallible-unwrap-in-opt-z.rs b/tests/codegen/infallible-unwrap-in-opt-z.rs
index 5c57b41532f..e8ab77f8d20 100644
--- a/tests/codegen/infallible-unwrap-in-opt-z.rs
+++ b/tests/codegen/infallible-unwrap-in-opt-z.rs
@@ -21,6 +21,6 @@ pub fn read_up_to_8(buf: &[u8]) -> u64 {
 // CHECK-LABEL: @checking_unwrap_expectation(
 #[no_mangle]
 pub fn checking_unwrap_expectation(buf: &[u8]) -> &[u8; 4] {
-    // CHECK: call void @_ZN4core6result13unwrap_failed17h
+    // CHECK: call void @{{.*core6result13unwrap_failed}}
     buf.try_into().unwrap()
 }