Skip to content

Commit 11543fd

Browse files
authored
pattern: fix compilation
This fixes compilation when the 'pattern' feature is enabled. This wasn't previously tested since it is a nightly only feature. But in this commit, we add it to CI explicitly. PR #772
1 parent 238b775 commit 11543fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
cd bench
152152
./run rust --no-run --verbose
153153
154+
- if: matrix.build == 'nightly'
155+
name: Run tests with pattern feature
156+
run: |
157+
cargo test --test default --no-default-features --features 'std pattern unicode-perl'
158+
154159
rustfmt:
155160
name: rustfmt
156161
runs-on: ubuntu-18.04

src/pattern.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use std::str::pattern::{Pattern, SearchStep, Searcher};
22

3-
use re_unicode::{Matches, Regex};
3+
use crate::re_unicode::{Matches, Regex};
44

5+
#[derive(Debug)]
56
pub struct RegexSearcher<'r, 't> {
67
haystack: &'t str,
78
it: Matches<'r, 't>,

0 commit comments

Comments
 (0)