Skip to content

Commit

Permalink
Merge pull request #432 from online-judge-tools/fix/use-rustc-1.70.0
Browse files Browse the repository at this point in the history
Upgrade rustc from 1.42.0 to 1.70.0
  • Loading branch information
koba-e964 committed Dec 8, 2023
2 parents 5669823 + 992ce17 commit 8f16acc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/rust/rust-toolchain
@@ -1 +1 @@
1.42.0
1.70.0
14 changes: 7 additions & 7 deletions tests/test_rust.py
Expand Up @@ -13,7 +13,7 @@ class TestRustListDependencies(unittest.TestCase):
def test_separate_crates(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[workspace]
Expand Down Expand Up @@ -124,7 +124,7 @@ def sub_crate_src_path(crate_name: str) -> pathlib.Path:
def test_separate_workspaces(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[workspace]
Expand Down Expand Up @@ -193,7 +193,7 @@ def test_separate_workspaces(self) -> None:
def test_gathered_source_files(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[workspace]
Expand Down Expand Up @@ -307,7 +307,7 @@ def sub_lib_src_path(crate_name: str) -> pathlib.Path:
def test_mono_package(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[package]
Expand Down Expand Up @@ -348,7 +348,7 @@ def test_mono_package(self) -> None:
def test_external_crates(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[package]
Expand All @@ -375,7 +375,7 @@ def test_external_crates(self) -> None:
def test_build_dependencies(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[workspace]
Expand Down Expand Up @@ -441,7 +441,7 @@ class TestRustVerification(unittest.TestCase):
def test_success(self) -> None:
files = {
pathlib.Path('rust-toolchain'): textwrap.dedent("""\
1.42.0
1.70.0
""").encode(),
pathlib.Path('Cargo.toml'): textwrap.dedent("""\
[package]
Expand Down

0 comments on commit 8f16acc

Please sign in to comment.