Skip to content

Commit 70119fa

Browse files
committed
Fix no-panic
1 parent 13890be commit 70119fa

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ no-panic = "0.1.8"
3333

3434
[build-dependencies]
3535
rand = { version = "0.6.5", optional = true }
36+
37+
# This is needed for no-panic to correctly detect the lack of panics
38+
[profile.release]
39+
lto = "fat"

ci/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ TARGET=$1
55

66
CMD="cargo test --all --target $TARGET"
77

8+
# Needed for no-panic to correct detect a lack of panics
9+
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
10+
811
# stable by default
912
$CMD
1013
$CMD --release

0 commit comments

Comments
 (0)