about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-13 15:25:35 +0000
committerbors <bors@rust-lang.org>2024-03-13 15:25:35 +0000
commit3cbb93223f33024db464a4df27a13c7cce870173 (patch)
tree5c6a78d2b35497d3f5ec256b7120053976b24fab /compiler/rustc_pattern_analysis/src
parent184c5ab1807a5e605cc8235d3734a97552768c22 (diff)
parent9f55200a42f599549fee0f003b27888d03604861 (diff)
downloadrust-3cbb93223f33024db464a4df27a13c7cce870173.tar.gz
rust-3cbb93223f33024db464a4df27a13c7cce870173.zip
Auto merge of #121668 - erikdesjardins:commonprim, r=scottmcm,oli-obk
Represent `Result<usize, Box<T>>` as ScalarPair(i64, ptr)

This allows types like `Result<usize, std::io::Error>` (and integers of differing sign, e.g. `Result<u64, i64>`) to be passed in a pair of registers instead of through memory, like `Result<u64, u64>` or `Result<Box<T>, Box<U>>` are today.

Fixes #97540.

r? `@ghost`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions