Skip to content

Commit 03c098a

Browse files
committed
Adjust assembly tests to continue working in Rust 1.75+
Rust has started [inlining more aggressively][1], so we need to avoid the inlining in order to get any assembly output. [1]: rust-lang/rust#116505
1 parent 52e193f commit 03c098a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ mod tests {
20442044
Ok(())
20452045
}
20462046

2047-
const ADD_CODE: &str = r#"pub fn add(a: u8, b: u8) -> u8 { a + b }"#;
2047+
const ADD_CODE: &str = r#"#[inline(never)] pub fn add(a: u8, b: u8) -> u8 { a + b }"#;
20482048

20492049
const ARBITRARY_ASSEMBLY_REQUEST: CompileRequest = CompileRequest {
20502050
target: CompileTarget::Assembly(

0 commit comments

Comments
 (0)