diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48fffb52d..659cfce65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,11 @@ jobs: cd bench ./run rust --no-run --verbose + - if: matrix.build == 'nightly' + name: Run tests with pattern feature + run: | + cargo test --test default --no-default-features --features 'std pattern unicode-perl' + rustfmt: name: rustfmt runs-on: ubuntu-18.04 diff --git a/src/pattern.rs b/src/pattern.rs index e94266709..b4ffd8e16 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -1,7 +1,8 @@ use std::str::pattern::{Pattern, SearchStep, Searcher}; -use re_unicode::{Matches, Regex}; +use crate::re_unicode::{Matches, Regex}; +#[derive(Debug)] pub struct RegexSearcher<'r, 't> { haystack: &'t str, it: Matches<'r, 't>,