Skip to content

Commit e647169

Browse files
Fix accuracy tests for rust 1.79
1 parent 4c7c1de commit e647169

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
shell: bash
5656
if: contains(matrix.rust, 'i686')
5757

58+
- name: Enable collapse_debuginfo based on version
59+
run: echo RUSTFLAGS="--cfg dbginfo=\"collapsible\" $RUSTFLAGS" >> $GITHUB_ENV
60+
shell: bash
61+
if: contains(matrix.rust, 'nightly') || contains(matrix.rust, 'beta')
62+
5863
- run: cargo build
5964
- run: cargo test
6065
- run: cargo test --features "serialize-serde"

tests/accuracy/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ macro_rules! pos {
66
};
77
}
88

9+
#[cfg_attr(dbginfo = "collapsible", collapse_debuginfo(yes))]
910
macro_rules! check {
1011
($($pos:expr),*) => ({
1112
verify(&[$($pos,)* pos!()]);

0 commit comments

Comments
 (0)