Skip to content

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

Merged
merged 16 commits into from
Mar 10, 2024
Merged

Sync Rust 2024-03-10 #468

merged 16 commits into from
Mar 10, 2024

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

nbdd0121 and others added 12 commits February 24, 2024 18:50
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``
@GuillaumeGomez GuillaumeGomez force-pushed the sync branch 2 times, most recently from 0c400bf to 6a339bf Compare March 10, 2024 17:09
.display()
.to_string();
if let Some(backend) = &self.backend {
rustflags.push(format!("-Zcodegen-backend={}", backend));
Copy link
Contributor

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?

Copy link
Member Author

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),

Copy link
Contributor

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?

Copy link
Member Author

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"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add rustfmt here?

Copy link
Member Author

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).

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum ok, removing it.

@antoyo antoyo merged commit 4720794 into rust-lang:master Mar 10, 2024
@antoyo antoyo mentioned this pull request Mar 10, 2024
@GuillaumeGomez GuillaumeGomez deleted the sync branch March 10, 2024 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants