Skip to content

Commit

Permalink
Merge pull request #41 from ninehusky/ninehusky-fix-ilp-compilation
Browse files Browse the repository at this point in the history
Fix compilation errors with `all-features`
  • Loading branch information
oflatt authored Aug 28, 2024
2 parents ac30499 + 8de5131 commit 4994658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/extract/faster_ilp_cbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,11 +1151,12 @@ fn cycle_dfs(
}
}

#[cfg(test)]
mod test {
use super::Config;
use crate::{
faster_ilp_cbc::extract, generate_random_egraph, ELABORATE_TESTING, EPSILON_ALLOWANCE,
};
use crate::test::{generate_random_egraph, ELABORATE_TESTING};

use crate::{faster_ilp_cbc::extract, EPSILON_ALLOWANCE};
use rand::Rng;
pub type Cost = ordered_float::NotNan<f64>;

Expand Down Expand Up @@ -1236,7 +1237,7 @@ mod test {
for _ in 0..CONFIGS_TO_TEST {
configs.push(generate_random_config());
}
test_configs(&configs, crate::test_save_path(stringify!($name)));
test_configs(&configs, crate::test::test_save_path(stringify!($name)));
}
)*
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn extractors() -> IndexMap<&'static str, ExtractorDetail> {
(
"faster-ilp-cbc",
ExtractorDetail {
extractor: extract::faster_ilp_cbc::FasterCbcExtractor::<10>.boxed(),
extractor: extract::faster_ilp_cbc::FasterCbcExtractor.boxed(),
optimal: Optimal::DAG,
use_for_bench: true,
},
Expand Down Expand Up @@ -170,4 +170,4 @@ fn main() {
}

#[cfg(test)]
mod test;
pub mod test;

0 comments on commit 4994658

Please sign in to comment.