-
Notifications
You must be signed in to change notification settings - Fork 295
transpile: upgrade most things for edition 2024 #1643
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
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
3d03fce
ci: run `cargo nextest run` with `--no-fail-fast` in CI
kkysen e8c3b73
transpile: add `--edition`, defaulting to edition 2021 for now
kkysen d219d33
transpile: only emit `[profile.release] strip = "debuginfo"` before e…
kkysen 89cd402
transpile: tests: add `expect_compile_error`
kkysen 0da2d8d
transpile: tests: add `edition` to `TranspileTest`
kkysen f847bcd
rust-tools: use a recent nightly for edition 2024 for `rustfmt` and `…
kkysen e2a98b4
transpile: make `fn maybe_write_file` take `output` as a `&str` not `…
kkysen 7757a26
transpile: remove `generated-rust-toolchain.toml` and generate it fro…
kkysen 29d8e40
transpile: tests: upgrade tests that require 0 changes to edition 2024
kkysen 856a89d
transpile: emit `#[unsafe(no_mangle)]` for edition 2024
kkysen 48685ef
transpile: emit `unsafe extern "C" }` for edition 2024
kkysen 4e5a3f8
transpile: emit `#[unsafe(export_name = "")]` and `#[unsafe(link_sect…
kkysen 2712287
transpile: reset `.unsafety` for `Builder`s
kkysen 9194235
transpile: fix some comment typos for `__builtin_arm_yield`
kkysen 832b4e6
transpile: remove/split `#![feature(stdsimd)]` in edition 2024
kkysen 452ecc3
transpile: tests: make the snapshot default edition 2024 now that mos…
kkysen 1d0adcb
transpile: tests: compute `snapshot_prefix` with `.flatten()` to simp…
kkysen 6abc746
transpile: tests: make `platform` a `&[&str]` instead of `Option<&str>`
kkysen c1badd7
transpile: tests: separate platform-specific parts with `.` instead o…
kkysen 4c488d1
transpile: tests: rename snapshots so that platform-specific parts ar…
kkysen 74f75ea
transpile: tests: use `@` as the test name and file name separator fo…
kkysen 266388b
transpile: tests: test on both editions
kkysen c6c615f
transpile: don't emit now stabilized `#![feature(raw_ref_op)]` in edi…
kkysen cbd1a07
transpile: move the stabilized feature in edition 2024 check to insid…
kkysen 7ea4bf2
transpile: don't emit now stabilized `#![feature(label_break_value)]`…
kkysen f7d6ce4
transpile: don't emit now stabilized `#![feature(asm)]` in edition 2024
kkysen 57bcced
transpile: remove `#![feature(stdsimd)]` for `__m64`, stabilized in R…
kkysen 2140e68
tests/unit: change `edition` to an `int` instead of a `str`, as this …
kkysen 48eb85d
tests/unit: hoise `edition = 2021` and gate `#![feature(stdsimd)]` be…
kkysen 107eb0f
tests/unit: enable `--color always` for `cargo build`s
kkysen 12c25a8
tests/unit: use named args for `c_file.translate`
kkysen 02d8a7a
tests/unit: add support for `--edition 2021` and `--edition 2024` in …
kkysen 7350385
tests/unit: switch from `--edition` flags to parsing `Cargo.toml`'s `…
kkysen 0c99358
tests/unit: enable `--color always` for `cargo test`s
kkysen c625956
tests/unit: `#![allow(unsafe_op_in_unsafe_fn)]` until we add proper `…
kkysen b6b5567
tests/unit: update most tests to edition 2024
kkysen 03a9e44
rust-tools: rename `RustEdition::{Rust => Edition}{2021,2024}`
kkysen 6dc1e9d
rust-tools: use `RustEditon::ALL` in `impl FromStr`
kkysen b9afa33
transpile: import `Edition{2021,2024}` directly
kkysen 9179447
tests/unit: remove now-stabilized `#![feature(...)]`s in edition 2024…
kkysen 3d3b282
transpile: use raw `r#""` string to avoid escaping `"` in `fn emit_ru…
kkysen 79cae37
transpile: tests: add `fn_attrs.c` from `tests/unit` as a snapshot te…
kkysen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.