Skip to content

Commit 02bd139

Browse files
committed
Delete rust-toolchain setup
1 parent 07937bc commit 02bd139

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

tests/lit/lit/formats/Cpp2RustTest.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import os
1212
import re
1313
import shutil
14-
import tomli
1514

1615

1716
MODELS = ("refcount", "unsafe")
@@ -199,18 +198,13 @@ def build_cpp(self):
199198

200199
def build_rust(self):
201200
exp = self.expectations
202-
rust_version = read_rust_version()
203201
self.pkg_name = "test_" + re.sub(r"[^a-zA-Z0-9_]", "_", self.tmp_dir.name)
204202

205-
(self.tmp_dir / "rust-toolchain.toml").write_text(
206-
f'[toolchain]\nchannel = "{rust_version}"\n'
207-
)
208203
(self.tmp_dir / "Cargo.toml").write_text(f"""
209204
[package]
210205
name = "{self.pkg_name}"
211206
version = "0.1.0"
212207
edition = "2021"
213-
rust-version = "{rust_version}"
214208
215209
[[bin]]
216210
name = "{self.pkg_name}"
@@ -331,11 +325,6 @@ def getTestsInDirectory(self, testSuite, path_in_suite, litConfig, localConfig):
331325
yield t
332326

333327

334-
def read_rust_version():
335-
toolchain_path = Path(__file__).parent / "../../../../libcc2rs/rust-toolchain.toml"
336-
return tomli.loads(toolchain_path.read_text())["toolchain"]["channel"]
337-
338-
339328
def shared_target_dir():
340329
return (Path(__file__).parent / "../../../../build/tmp/cargo-target").resolve()
341330

0 commit comments

Comments
 (0)