-
Notifications
You must be signed in to change notification settings - Fork 74
Sync Rust 2024-03-10 #468
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
Sync Rust 2024-03-10 #468
Conversation
…update_cg_gcc_2024-03-05
Add asm goto support to `asm!` Tracking issue: #119364 This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto). Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary. r? ``@Amanieu`` cc ``@ojeda``
0c400bf
to
6a339bf
Compare
.display() | ||
.to_string(); | ||
if let Some(backend) = &self.backend { | ||
rustflags.push(format!("-Zcodegen-backend={}", backend)); |
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.
You don't need sysroot here?
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.
Apparently not. This option is only used in the Rust CI (--backend
),
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.
Ah makes sense since you compile the sysroot the usual way I guess.
Could you please add a comment to mention this?
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.
Sure!
rust-toolchain
Outdated
channel = "nightly-2024-03-05" | ||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"] | ||
channel = "nightly-2024-03-10" | ||
components = ["rust-src", "rustc-dev", "llvm-tools-preview", "rustfmt"] |
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.
Why add rustfmt
here?
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.
Because we need it to run cargo fmt
(which is enforced in the CI).
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.
Yeah, but the people who only want to compile the project might not want it.
So, I would remove this unless you see a reason to keep it.
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.
Hum ok, removing it.
No description provided.