Rollup merge of #97493 - compiler-errors:issue-97490, r=oli-obk
Use `type_is_copy_modulo_regions` check in intrisicck This one canoncalizes region variables correctly, preventing an ICE Fixes #97490
This commit is contained in:
commit
56026e2fc6
2 changed files with 14 additions and 1 deletions
12
src/test/ui/asm/issue-97490.rs
Normal file
12
src/test/ui/asm/issue-97490.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
// only-x86_64
|
||||
// needs-asm-support
|
||||
|
||||
pub type Yes = extern "sysv64" fn(&'static u8) -> !;
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let yes = &6 as *const _ as *const Yes;
|
||||
core::arch::asm!("call {}", in(reg) yes, options(noreturn));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue