diff options
Diffstat (limited to 'vendor/bstr/src/lib.rs')
-rw-r--r-- | vendor/bstr/src/lib.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vendor/bstr/src/lib.rs b/vendor/bstr/src/lib.rs index 8598e4458..47c624408 100644 --- a/vendor/bstr/src/lib.rs +++ b/vendor/bstr/src/lib.rs @@ -394,20 +394,6 @@ and Unicode support. #![cfg_attr(not(any(feature = "std", test)), no_std)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] -// Why do we do this? Well, in order for us to use once_cell's 'Lazy' type to -// load DFAs, it requires enabling its 'std' feature. Yet, there is really -// nothing about our 'unicode' feature that requires 'std'. We could declare -// that 'unicode = [std, ...]', which would be fine, but once regex-automata -// 0.3 is a thing, I believe we can drop once_cell altogether and thus drop -// the need for 'std' to be enabled when 'unicode' is enabled. But if we make -// 'unicode' also enable 'std', then it would be a breaking change to remove -// 'std' from that list. -// -// So, for right now, we force folks to explicitly say they want 'std' if they -// want 'unicode'. In the future, we should be able to relax this. -#[cfg(all(feature = "unicode", not(feature = "std")))] -compile_error!("enabling 'unicode' requires enabling 'std'"); - #[cfg(feature = "alloc")] extern crate alloc; |