Commit 3a4e872
committed
c2rust-transpile: Use a separate file for the generated
When c2rust-transpile translates C variadics, it generates code using
the (currently) nightly-only feature `c_variadics`, so it emits a
`rust-toolchain.toml` file to use nightly. Rather than copy this file
from the `rust-toolchain.toml` used to build c2rust itself, use a
separate file.
This also means the generated `rust-toolchain.toml` can stop requiring
toolchain components that the generated code doesn't need, such as
rustc-dev. (It still requires `rustfmt`, as c2rust may run `cargo fmt`
on the generated code if invoking `c2rust-refactor`.)rust-toolchain.toml
1 parent 709eaf0 commit 3a4e872
File tree
2 files changed
+4
-1
lines changed- c2rust-transpile/src/build_files
2 files changed
+4
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments