Skip to content

Commit 688d594

Browse files
authoredJan 30, 2020
Merge pull request #52 from qryxip/ja-all-enabled-final-crate-update
Final crate update: - Update Cargo.toml to remove the crates rejected by AtCoder. - Update Cargo.toml with the latest versions of accepted crates. - Change the Rust version for the CI from 1.39.0 to 1.40.0. - Remove dep-tests. Run test-examples on all the tool chains on the CI.
2 parents 5ba7d01 + 79f9b1b commit 688d594

22 files changed

+78
-1428
lines changed
 

‎.cargo/config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[alias]
2-
dep-tests = ["run", "--manifest-path", "./tools/dep-tests/Cargo.toml", "--"]
32
test-examples = ["run", "--manifest-path", "./tools/test-examples/Cargo.toml", "--"]

‎.github/workflows/ci.yml

Lines changed: 30 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
# Breaking changes like this might be mixed into the future stable versions.
1515
# https://github.com/rust-lang/rustfmt/pull/3632
1616
channel:
17-
- 1.39.0
17+
- 1.40.0
1818
- stable
1919

2020
name: Rustfmt (${{ matrix.channel }})
2121
runs-on: ubuntu-18.04
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v1
25+
uses: actions/checkout@v2
2626

27-
- name: rust-toolchain
27+
- name: Setup ${{ matrix.channel }}-x86_64-unknown-linux-gnu
2828
uses: actions-rs/toolchain@v1
2929
with:
3030
toolchain: ${{ matrix.channel }}-x86_64-unknown-linux-gnu
@@ -37,71 +37,22 @@ jobs:
3737
command: fmt
3838
args: -- --check
3939

40-
- name: '`cargo fmt --manifest-path ./tools/dep-tests/Cargo.toml -- --check`'
41-
uses: actions-rs/cargo@v1
42-
with:
43-
command: fmt
44-
args: --manifest-path ./tools/dep-tests/Cargo.toml -- --check
45-
4640
- name: '`cargo fmt --manifest-path ./tools/test-examples/Cargo.toml -- --check`'
4741
uses: actions-rs/cargo@v1
4842
with:
4943
command: fmt
5044
args: --manifest-path ./tools/test-examples/Cargo.toml -- --check
5145

52-
test-examples:
53-
name: test-examples
54-
runs-on: ubuntu-18.04
55-
56-
steps:
57-
- name: Checkout
58-
uses: actions/checkout@v1
59-
60-
- name: setup-python
61-
uses: actions/setup-python@v1
62-
with:
63-
python-version: '3.8'
64-
65-
- name: rust-toolchain
66-
uses: actions-rs/toolchain@v1
67-
with:
68-
toolchain: 1.39.0-x86_64-unknown-linux-gnu
69-
default: true
70-
profile: default
71-
72-
- name: '`cargo install --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator`'
73-
uses: actions-rs/cargo@v1
74-
with:
75-
command: install
76-
args: --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator
77-
78-
- name: '`cargo clippy --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings`'
79-
uses: actions-rs/cargo@v1
80-
with:
81-
command: clippy
82-
args: --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
83-
84-
- name: '`cargo build --all-features --release`'
85-
uses: actions-rs/cargo@v1
86-
with:
87-
command: build
88-
args: --all-features --release
89-
90-
- name: '`cargo test-examples`'
91-
uses: actions-rs/cargo@v1
92-
with:
93-
command: test-examples
94-
9546
build:
9647
strategy:
9748
fail-fast: false
9849
matrix:
9950
toolchain:
10051
# `x86_64-pc-windows-gnu` is tier 1 **for now**.
101-
- 1.39.0-x86_64-pc-windows-msvc
102-
- 1.39.0-x86_64-pc-windows-gnu
103-
- 1.39.0-x86_64-apple-darwin
104-
- 1.39.0-x86_64-unknown-linux-gnu
52+
- 1.40.0-x86_64-pc-windows-msvc
53+
- 1.40.0-x86_64-pc-windows-gnu
54+
- 1.40.0-x86_64-apple-darwin
55+
- 1.40.0-x86_64-unknown-linux-gnu
10556
- stable-x86_64-pc-windows-msvc
10657
- stable-x86_64-pc-windows-gnu
10758
- stable-x86_64-apple-darwin
@@ -111,53 +62,29 @@ jobs:
11162
- beta-x86_64-apple-darwin
11263
- beta-x86_64-unknown-linux-gnu
11364
include:
114-
- toolchain: 1.39.0-x86_64-pc-windows-msvc
115-
features: --no-default-features
116-
dep_tests: true
65+
- toolchain: 1.40.0-x86_64-pc-windows-msvc
11766
os: windows-latest
118-
- toolchain: 1.39.0-x86_64-pc-windows-gnu
119-
features: --no-default-features
120-
dep_tests: false
67+
- toolchain: 1.40.0-x86_64-pc-windows-gnu
12168
os: windows-latest
122-
- toolchain: 1.39.0-x86_64-apple-darwin
123-
features: --all-features
124-
dep_tests: true
69+
- toolchain: 1.40.0-x86_64-apple-darwin
12570
os: macOS-latest
126-
- toolchain: 1.39.0-x86_64-unknown-linux-gnu
127-
features: --all-features
128-
dep_tests: true
71+
- toolchain: 1.40.0-x86_64-unknown-linux-gnu
12972
os: ubuntu-18.04
13073
- toolchain: stable-x86_64-pc-windows-msvc
131-
features: --no-default-features
132-
dep_tests: true
13374
os: windows-latest
13475
- toolchain: stable-x86_64-pc-windows-gnu
135-
features: --no-default-features
136-
dep_tests: false
13776
os: windows-latest
13877
- toolchain: stable-x86_64-apple-darwin
139-
features: --all-features
140-
dep_tests: true
14178
os: macOS-latest
14279
- toolchain: stable-x86_64-unknown-linux-gnu
143-
features: --all-features
144-
dep_tests: true
14580
os: ubuntu-18.04
14681
- toolchain: beta-x86_64-pc-windows-msvc
147-
features: --no-default-features
148-
dep_tests: true
14982
os: windows-latest
15083
- toolchain: beta-x86_64-pc-windows-gnu
151-
features: --no-default-features
152-
dep_tests: false
15384
os: windows-latest
15485
- toolchain: beta-x86_64-apple-darwin
155-
features: --all-features
156-
dep_tests: true
15786
os: macOS-latest
15887
- toolchain: beta-x86_64-unknown-linux-gnu
159-
features: --all-features
160-
dep_tests: true
16188
os: ubuntu-18.04
16289

16390
name: ${{ matrix.toolchain }}
@@ -169,50 +96,45 @@ jobs:
16996
if: matrix.os == 'windows-latest'
17097

17198
- name: Checkout
172-
uses: actions/checkout@v1
99+
uses: actions/checkout@v2
173100

174-
- name: rust-toolchain
101+
- name: Setup ${{ matrix.toolchain }}
175102
uses: actions-rs/toolchain@v1
176103
with:
177104
toolchain: ${{ matrix.toolchain }}
178105
override: true
179106
profile: default
180107

181-
- name: '`cargo clippy --all-targets --profile test ${{ matrix.features }} -- -D warnings`'
182-
uses: actions-rs/cargo@v1
108+
- name: Setup Python 3.8
109+
uses: actions/setup-python@v1
183110
with:
184-
command: clippy
185-
args: --all-targets --profile test ${{ matrix.features }} -- -D warnings
111+
python-version: '3.8'
186112

187-
- name: '`cargo test --all-targets ${{ matrix.features }} --no-fail-fast`'
113+
- name: '`cargo clippy --all-targets --profile test -- -D warnings`'
188114
uses: actions-rs/cargo@v1
189115
with:
190-
command: test
191-
args: --all-targets ${{ matrix.features }} --no-fail-fast
116+
command: clippy
117+
args: --all-targets --profile test -- -D warnings
192118

193-
- name: '`cargo run --release`'
119+
- name: '`cargo clippy --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings`'
194120
uses: actions-rs/cargo@v1
195121
with:
196-
command: run
197-
args: ${{ matrix.features }} --release
122+
command: clippy
123+
args: --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
198124

199-
- name: '`cargo clippy ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml -- -D warnings`'
125+
- name: '`cargo test --all-targets --no-fail-fast`'
200126
uses: actions-rs/cargo@v1
201127
with:
202-
command: clippy
203-
args: ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml -- -D warnings
204-
if: matrix.dep_tests
128+
command: test
129+
args: --all-targets --no-fail-fast
205130

206-
- name: '`cargo test ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml --no-fail-fast`'
131+
- name: '`cargo run --release`'
207132
uses: actions-rs/cargo@v1
208133
with:
209-
command: test
210-
args: ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml --no-fail-fast
211-
if: matrix.dep_tests
134+
command: run
135+
args: --release
212136

213-
- name: '`cargo dep-tests --all-features -d 1`'
137+
- name: '`cargo test-examples`'
214138
uses: actions-rs/cargo@v1
215139
with:
216-
command: dep-tests
217-
args: --all-features -d 1
218-
if: matrix.dep_tests
140+
command: test-examples

‎.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/tools/dep-tests/Cargo.lock
21
/tools/test-examples/Cargo.lock
32
**/target/
43
**/*.rs.bk

‎Cargo.lock

Lines changed: 30 additions & 548 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@ exclude = ["./tools"]
1616
name = "main"
1717
path = "src/main.rs"
1818

19-
[features]
20-
jemalloc = ["jemalloc-ctl", "jemallocator"]
21-
default = ["jemalloc"]
22-
2319
[dependencies]
2420
# AtCoder 2019年言語アップデート以降に使用できるクレート
2521

2622
# 多バイト長整数、分数、複素数など
2723
num = "=0.2.1"
28-
num-bigint = "=0.2.5"
24+
num-bigint = "=0.2.6"
2925
num-complex = "=0.2.4"
3026
num-integer = "=0.1.42"
3127
num-iter = "=0.1.40"
@@ -57,36 +53,15 @@ rand_distr = "=0.2.2"
5753
# グラフ
5854
petgraph = "=0.5.0"
5955

60-
# 幾何
61-
euclid = "=0.20.7"
62-
63-
# 素数
64-
primal = "=0.2.3"
65-
primal-check = "=0.2.3"
66-
primal-estimate = "=0.2.1"
67-
primal-sieve = "=0.2.9"
68-
6956
# 挿入順を保持するhash table
70-
indexmap = "=1.3.0"
57+
indexmap = "=1.3.1"
7158

7259
# 正規表現
7360
regex = "=1.3.3"
7461

75-
# パーサーコンビネータ
76-
nom = "=5.1.0"
77-
78-
# Aho–Corasick
79-
aho-corasick = "=0.7.6"
80-
81-
# string similarity metrics
82-
strsim = "=0.9.3"
83-
8462
# staticアイテムの遅延初期化
8563
lazy_static = "=1.4.0"
8664

87-
# 浮動点小数の比較
88-
approx = "=0.3.2"
89-
9065
# f64のOrd/Eq実装
9166
ordered-float = "=1.0.2"
9267

@@ -104,67 +79,32 @@ superslice = "=1.0.0"
10479
itertools = "=0.8.2"
10580
itertools-num = "=0.1.3"
10681

107-
# `&mut T`から`T`を『借りる』
108-
take_mut = "=0.2.2"
109-
110-
# 1行で書ける`macro_rules`
111-
defmac = "=0.2.1"
112-
113-
# パターンを`bool`式に
114-
matches = "=0.1.8"
115-
116-
# `if`と`if let`を『まとめる』マクロ`if_chain!`
117-
if_chain = "=1.0.0"
118-
11982
# `hashmap!`, `hashset!`, `btreemap!`, `btreeset!`
12083
maplit = "=1.0.2"
12184

122-
# `std`のトレイトに対応するderive macro
123-
derive_more = "=0.99.2"
124-
125-
# メソッド`new`を生やすderive macro
126-
derive-new = "=0.5.8"
127-
12885
# 即席enum `Either<L, R>`
12986
either = "=1.5.3"
13087

13188
# 標準ライブラリのVecやHashMapに対応する永続データ構造
13289
# 永続データ構造は関数型言語によく見られるデータ構造で、要素を更新しても、そのデータ構造の
13390
# 以前のバージョンにアクセスできる。(更新の度に差分が記録されていくイメージ)
134-
im-rc = "=14.1.0"
91+
im-rc = "=14.2.0"
13592

13693
# 可変長bit set。
13794
fixedbitset = "=0.2.0"
13895
bitset-fixed = "=0.1.0"
13996

140-
# union-find (a.k.a. disjoint-set)
141-
union-find = "=0.3.2"
142-
14397
# 競技プログラミングの入出力サポート
144-
proconio = { version = "=0.3.4", features = ["derive"] }
145-
text_io = "=0.1.7"
98+
proconio = { version = "=0.3.5", features = ["derive"] }
99+
text_io = "=0.1.8"
146100
whiteread = "=0.5.0"
147101

148-
# 剰余関連。普通の整数型などと同じ感覚で扱うだけで自動的にmodを取ってくれる
149-
# 答えの整数をMで割った余りが要求される設問で便利
150-
modtype = "=0.7.0"
151-
152102
# 高速なハッシュ関数
153103
rustc-hash = "=1.0.1"
154104

155105
# 固定配列上のベクタ。ヒープ領域でなくスタック領域にアロケートされるので高速かもしれない
156106
smallvec = "=1.1.0"
157107

158-
# 代替ヒープアロケータ。条件によってはシステムアロケータより速いことも
159-
[target.'cfg(not(windows))'.dependencies]
160-
jemallocator = { version = "=0.3.2", optional = true }
161-
jemalloc-ctl = { version = "=0.3.3", optional = true }
162-
163-
[[test]]
164-
name = "jemallocator"
165-
path = "tests/test_jemallocator.rs"
166-
required-features = ["jemalloc"]
167-
168108
# ---------------------------------------------------------------------
169109

170110
[dev-dependencies]

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
**TODO** もう少し詳しく書く
2121

2222
- AtCoder 2019年言語アップデート後の環境向け
23-
- Rust 1.39.0
23+
- Rust 1.40.0
2424
- AtCoderジャッジサーバ環境の構築用
2525

2626

‎cargo-generate.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[template]
2-
exclude = [".github", ".cargo", "dep-tests"]
2+
exclude = [".github/workflows/ci.yml", ".cargo/config", "dep-tests.toml", "tools/**/*"]

‎examples/abc057-b-text-io.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// https://atcoder.jp/contests/abc057/tasks/abc057_b
22

3-
#![allow(clippy::many_single_char_names, clippy::try_err)]
4-
5-
use text_io::{read, try_read, try_scan};
3+
use text_io::read;
64

75
fn main() {
86
let n: usize = read!();

‎examples/abc073-d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::ops::Sub;
1313

1414
fn main() {
1515
input! {
16-
_n: usize,
16+
_: usize,
1717
m: usize,
1818
r: usize,
1919
rs: [NodeIndex1<u32>; r],

‎examples/abc118-b-proconio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::ops::{BitAnd, BitOr};
88
fn main() {
99
input! {
1010
n: usize,
11-
_m: usize,
11+
_: usize,
1212
a: [[Usize1]; n],
1313
}
1414

‎examples/abc118-b-text-io.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// https://atcoder.jp/contests/abc118/tasks/abc118_b
22

3-
use text_io::{read, try_read, try_scan};
3+
use text_io::read;
44

55
use std::ops::{BitAnd, BitOr};
66

7-
#[allow(clippy::try_err)]
87
fn main() {
98
let (n, _): (usize, usize) = (read!(), read!());
109
let a = (0..n)

‎examples/abc121-b-text-io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// https://atcoder.jp/contests/abc121/tasks/abc121_b
22

3-
use text_io::{read, try_read, try_scan};
3+
use text_io::read;
44

5-
#[allow(clippy::many_single_char_names, clippy::try_err)]
5+
#[allow(clippy::many_single_char_names)]
66
fn main() {
77
let (n, m, c): (usize, usize, i32) = (read!(), read!(), read!());
88
let b = (0..m).map(|_| read!()).collect::<Vec<i32>>();

‎examples/abc129-f.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() {
1616
l: u64,
1717
a: u64,
1818
b: u64,
19-
_m: Mod,
19+
(): Mod,
2020
}
2121

2222
let count = |d| -> _ {

‎examples/abc151-d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646
.iter()
4747
.flat_map(|&p| &neighbors[p])
4848
.copied()
49-
.filter(|&p| mem::replace(&mut unvisited[p], false))
49+
.filter(|&p| mem::take(&mut unvisited[p]))
5050
.collect();
5151
!queue.is_empty()
5252
})

‎examples/practice-a-text-io.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// https://atcoder.jp/contests/practice/tasks/practice_1
22

3-
use text_io::{read, try_read, try_scan};
3+
use text_io::read;
44

5-
#[allow(clippy::many_single_char_names, clippy::try_err)]
65
fn main() {
76
let (a, b, c, s): (u32, u32, u32, String) = (read!(), read!(), read!(), read!());
87

‎examples/practice-b-text-io.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// https://atcoder.jp/contests/practice/tasks/practice_2
22

33
use maplit::hashset;
4-
use text_io::{read, try_read, try_scan};
4+
use text_io::read;
55

66
use std::{io, str};
77

8-
#[allow(clippy::try_err)]
98
fn main() {
109
fn read_line() -> String {
1110
let mut input = "".to_owned();

‎rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.39.0
1+
1.40.0

‎src/main.rs

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ type UnitResult = Result<(), Box<dyn std::error::Error>>;
55
fn main() -> UnitResult {
66
run_proconio();
77
run_ordered_float();
8-
run_modtype()?;
98
run_ascii()?;
109
run_bitset_fixed();
1110
run_permutohedron();
@@ -110,114 +109,6 @@ fn test_ordered_float() {
110109
run_ordered_float();
111110
}
112111

113-
// modtype
114-
fn run_modtype() -> UnitResult {
115-
use modtype::cartridges::{Additive, AllowFlexibleRhs, Field, ManuallyAdjust, Multiplicative};
116-
use modtype::{use_modtype, Cartridge, ConstValue};
117-
use num::{BigInt, BigRational, CheckedDiv as _};
118-
119-
use std::marker::PhantomData;
120-
121-
{
122-
#[use_modtype]
123-
type F = modtype::F<1_000_000_007u64>;
124-
125-
assert_eq!((F(1_000_000_006) + F(2)).to_string(), "1");
126-
}
127-
{
128-
#[allow(non_snake_case)]
129-
modtype::thread_local::F::with(1_000_000_007u64, |F| {
130-
assert_eq!((F(1_000_000_006) + F(2)).to_string(), "1");
131-
});
132-
}
133-
{
134-
#[allow(non_snake_case)]
135-
let F = modtype::non_static::F::factory(1_000_000_007u64);
136-
137-
assert_eq!((F(1_000_000_006) + F(2)).to_string(), "1");
138-
}
139-
{
140-
#[use_modtype]
141-
type F = modtype::ModType<AllowFlexibleRhs<Field<u64>>, 1_000_000_007u64>;
142-
143-
let mut x = F(1);
144-
x += F(1);
145-
x += 1u64;
146-
x += 1i32;
147-
x += 1f64;
148-
x += BigInt::from(1u32);
149-
x += BigRational::new(BigInt::from(1u32), BigInt::from(1u32));
150-
assert_eq!(x, F(7));
151-
}
152-
{
153-
#[use_modtype]
154-
type Z = modtype::ModType<Multiplicative<u32>, 57u32>;
155-
156-
assert_eq!(Z(56) * Z(56), Z(1));
157-
assert_eq!(Z(1).checked_div(&Z(13)), Some(Z(22))); // 13・22 ≡ 1 (mod 57)
158-
}
159-
{
160-
#[use_modtype]
161-
type Z = modtype::ModType<Additive<u64>, 1_000_000_007u64>;
162-
163-
let mut x = Z(1_000_000_006);
164-
165-
x += Z(1);
166-
assert_eq!(*x.get_mut_unchecked(), 1_000_000_007);
167-
168-
x += Z(u64::max_value() / 2 - 1_000_000_007);
169-
assert_eq!(*x.get_mut_unchecked(), u64::max_value() / 2);
170-
171-
x += Z(1);
172-
assert_eq!(
173-
*x.get_mut_unchecked(),
174-
(u64::max_value() / 2 + 1) % 1_000_000_007,
175-
);
176-
}
177-
{
178-
#[use_modtype]
179-
type Z = modtype::ModType<ManuallyAdjust<u64>, 1_000_000_007u64>;
180-
181-
let mut x = Z(1_000_000_006);
182-
183-
x += Z(u64::max_value() - 1_000_000_006);
184-
assert_eq!(*x.get_mut_unchecked(), u64::max_value());
185-
186-
x.adjust();
187-
assert_eq!(*x.get_mut_unchecked(), u64::max_value() % 1_000_000_007);
188-
}
189-
{
190-
#[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/3673
191-
#[derive(modtype::ModType)]
192-
#[modtype(modulus = "M::VALUE", cartridge = "C")]
193-
struct ModType<C: Cartridge<Target = u64>, M: ConstValue<Value = u64>> {
194-
#[modtype(value)]
195-
value: u64,
196-
phantom: PhantomData<fn() -> (C, M)>,
197-
}
198-
199-
impl<M: ConstValue<Value = u64>> ModType<Field<u64>, M> {
200-
fn new(value: u64) -> Self {
201-
Self {
202-
value,
203-
phantom: PhantomData,
204-
}
205-
}
206-
}
207-
208-
#[use_modtype]
209-
type F = ModType<Field<u64>, 1_000_000_007u64>;
210-
211-
assert_eq!((-F(1)).to_string(), "1000000006");
212-
}
213-
Ok(())
214-
}
215-
216-
#[test]
217-
fn test_modtype() -> UnitResult {
218-
run_modtype()
219-
}
220-
221112
// ascii
222113
fn run_ascii() -> UnitResult {
223114
use ascii::AsciiString;

‎tests/defmac.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎tests/test_jemallocator.rs

Lines changed: 0 additions & 65 deletions
This file was deleted.

‎tools/dep-tests/Cargo.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎tools/dep-tests/src/main.rs

Lines changed: 0 additions & 484 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.