-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #97538 - compiler-errors:rollup-zp3ukke, r=compiler-errors
Rollup of 4 pull requests Successful merges: - #97493 (Use `type_is_copy_modulo_regions` check in intrisicck) - #97518 (Fix order of closing HTML elements in rustdoc output) - #97530 (Add more eslint checks) - #97536 (Remove unused lifetimes from expand_macro) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
5 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} |