Skip to content

Commit

Permalink
Rollup merge of #120310 - krasimirgg:jan-v0-sym, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
adapt test for v0 symbol mangling

No functional changes intended.

Adapts the test to also work under `new-symbol-mangling = true`.
  • Loading branch information
GuillaumeGomez committed Jan 30, 2024
2 parents 4f4ceef + e23937c commit 6a1d34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/infallible-unwrap-in-opt-z.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 6a1d34f

Please sign in to comment.