-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fix ICE on specific malformed asm clobber_abi #112683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
tests/ui/asm/invalid_clobber_abi.rs
Outdated
|
||
fn main() { | ||
unsafe { | ||
asm!("", clobber_abi(1)); //~ ERROR expected string literal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do clobber_abi()
without any args too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a test in the x86_64 specific tests that handles this:
rust/tests/ui/asm/x86_64/parse-error.rs
Lines 41 to 42 in 331249a
asm!("", clobber_abi()); | |
//~^ ERROR at least one abi must be provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm now that I think about it, that file should be brought out to the main asm tests and this file's contents added to it
r=me with one additional example (unless there's already a ui test that excersies this behavior somewhere) r? @compiler-errors @bors delegate+ |
✌️ @asquared31415, you can now approve this pull request! If @compiler-errors told you to " |
54006e0
to
e8824d6
Compare
@bors r=compiler-errors |
…ompiler-errors fix ICE on specific malformed asm clobber_abi fixes rust-lang#112635
e8824d6
to
1fcb0c7
Compare
@bors r=compiler-errors |
📌 Commit 1fcb0c74f9549207d35cd85675f3c221012ef982 has been approved by It is now in the queue for this repository. |
1fcb0c7
to
3dc793e
Compare
thank @bors r+ |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#112352 (Fix documentation build on FreeBSD) - rust-lang#112644 (Correct types in method descriptions of `NonZero*` types) - rust-lang#112683 (fix ICE on specific malformed asm clobber_abi) - rust-lang#112707 ([rustdoc] Fix invalid handling of "going back in history" when "go to only search result" setting is enabled) - rust-lang#112719 (Replace fvdl with ffx, allow test without install) - rust-lang#112728 (Add `<meta charset="utf-8">` to `-Zdump-mir-spanview` output) r? `@ghost` `@rustbot` modify labels: rollup
fixes #112635