update rustc #102

Open
opened 2022-10-07 18:49:30 +08:00 by sb10q · 5 comments
Owner

plenty of breakage on recent Rust versions...

plenty of breakage on recent Rust versions...
esavkin was assigned by sb10q 2022-10-07 18:50:05 +08:00
Owner

Maybe, try migrate to stable release? It would be easier to update in the future, and asm! macro is stable now https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html.

Maybe, try migrate to stable release? It would be easier to update in the future, and asm! macro is stable now https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html.
Author
Owner

Yes, some QUARTIQ embedded projects are already using stable so this seems doable. Either way migration needs to be done.

Yes, some QUARTIQ embedded projects are already using stable so this seems doable. Either way migration needs to be done.
Contributor

I currently have a setup to get us to 1.56.0-nightly (29ef6cf16 2021-08-31) with LLVM13, with forked core_io and rust-fatfs repos. If there's interest, we can get the ball rolling on that? This is the same version as the mainline ARTIQ repo, and uses an LLVM version that is currently available on the nixos-unstable channel.

I've been keeping an eye on the unstable features that we use, and there's a few that are not stabilized (c_variadic etc..).

I currently have a setup to get us to 1.56.0-nightly (29ef6cf16 2021-08-31) with LLVM13, with forked `core_io` and `rust-fatfs` repos. If there's interest, we can get the ball rolling on that? This is the same version as the mainline ARTIQ repo, and uses an LLVM version that is currently available on the `nixos-unstable` channel. I've been keeping an eye on the unstable features that we use, and there's a few that are not stabilized (`c_variadic` etc..).
Author
Owner

Yes please.

Yes please.
Author
Owner

The unstable features can be used on stable rust by setting the environment variable RUSTC_BOOTSTRAP=1 to get the compiler to stfu. Simplifies things in most cases, contrary to official advice.

The unstable features can be used on stable rust by setting the environment variable ``RUSTC_BOOTSTRAP=1`` to get the compiler to stfu. Simplifies things in most cases, contrary to official advice.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#102
No description provided.