You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #135959 - matthiaskrgr:rollup-0jenyfw, r=matthiaskrgr
Rollup of 7 pull requests
Successful merges:
- #135366 (Enable `unreachable_pub` lint in `test` and `proc_macro` crates)
- #135638 (Make it possible to build GCC on CI)
- #135648 (support wasm inline assembly in `naked_asm!`)
- #135827 (CI: free disk with in-tree script instead of GitHub Action)
- #135855 (Only assert the `Parser` size on specific arches)
- #135878 (ci: use 8 core arm runner for dist-aarch64-linux)
- #135905 (Enable kernel sanitizers for aarch64-unknown-none-softfloat)
r? `@ghost`
`@rustbot` modify labels: rollup
let ptr_type = match tcx.data_layout.pointer_size.bits(){
313
+
32 => "i32",
314
+
64 => "i64",
315
+
other => bug!("wasm pointer size cannot be {other} bits"),
316
+
};
317
+
318
+
// FIXME: remove this once the wasm32-unknown-unknown ABI is fixed
319
+
// please also add `wasm32-unknown-unknown` back in `tests/assembly/wasm32-naked-fn.rs`
320
+
// basically the commit introducing this comment should be reverted
321
+
ifletPassMode::Pair{ .. } = fn_abi.ret.mode{
322
+
let _ = WasmCAbi::Legacy;
323
+
span_bug!(
324
+
tcx.def_span(def_id),
325
+
"cannot return a pair (the wasm32-unknown-unknown ABI is broken, see https://github.com/rust-lang/rust/issues/115666"
326
+
);
327
+
}
328
+
329
+
let hidden_return = matches!(fn_abi.ret.mode,PassMode::Indirect{ .. });
// FIXME: remove this branch once the wasm32-unknown-unknown ABI is fixed
374
+
let _ = WasmCAbi::Legacy;
375
+
span_bug!(
376
+
tcx.def_span(def_id),
377
+
"cannot use memory args (the wasm32-unknown-unknown ABI is broken, see https://github.com/rust-lang/rust/issues/115666"
378
+
);
379
+
}
380
+
other => unreachable!("unexpected BackendRepr: {:?}", other),
381
+
};
382
+
383
+
signature.push_str(direct_type);
384
+
}
385
+
PassMode::Pair(_, _) => match arg_abi.layout.backend_repr{
0 commit comments