--- a/rust/hg-core/src/lib.rs Fri May 29 12:12:16 2020 +0200
+++ b/rust/hg-core/src/lib.rs Fri May 29 12:17:59 2020 +0200
@@ -23,8 +23,6 @@
pub mod matchers;
pub mod revlog;
pub use revlog::*;
-#[cfg(feature = "with-re2")]
-pub mod re2;
pub mod utils;
// Remove this to see (potential) non-artificial compile failures. MacOS
@@ -141,9 +139,6 @@
/// Needed a pattern that can be turned into a regex but got one that
/// can't. This should only happen through programmer error.
NonRegexPattern(IgnorePattern),
- /// This is temporary, see `re2/mod.rs`.
- /// This will cause a fallback to Python.
- Re2NotInstalled,
}
impl ToString for PatternError {
@@ -166,10 +161,6 @@
PatternError::NonRegexPattern(pattern) => {
format!("'{:?}' cannot be turned into a regex", pattern)
}
- PatternError::Re2NotInstalled => {
- "Re2 is not installed, cannot use regex functionality."
- .to_string()
- }
}
}
}