@@ -22,7 +22,7 @@ used by adding `regex` to your dependencies in your project's `Cargo.toml`.
2222regex = "1"
2323```
2424
25- and this to your crate root:
25+ If you're using Rust 2015, then you'll also need to add it to your crate root:
2626
2727```rust
2828extern crate regex;
@@ -511,8 +511,8 @@ another matching engine with fixed memory requirements.
511511#![ cfg_attr( test, deny( warnings) ) ]
512512#![ cfg_attr( feature = "pattern" , feature( pattern) ) ]
513513
514- #[ cfg( not( feature = "use_std " ) ) ]
515- compile_error ! ( "`use_std ` feature is currently required to build this crate" ) ;
514+ #[ cfg( not( feature = "std " ) ) ]
515+ compile_error ! ( "`std ` feature is currently required to build this crate" ) ;
516516
517517extern crate aho_corasick;
518518extern crate memchr;
@@ -527,16 +527,16 @@ extern crate regex_syntax as syntax;
527527#[ cfg( test) ]
528528doc_comment:: doctest!( "../README.md" ) ;
529529
530- #[ cfg( feature = "use_std " ) ]
530+ #[ cfg( feature = "std " ) ]
531531pub use error:: Error ;
532- #[ cfg( feature = "use_std " ) ]
532+ #[ cfg( feature = "std " ) ]
533533pub use re_builder:: set_unicode:: * ;
534- #[ cfg( feature = "use_std " ) ]
534+ #[ cfg( feature = "std " ) ]
535535pub use re_builder:: unicode:: * ;
536- #[ cfg( feature = "use_std " ) ]
536+ #[ cfg( feature = "std " ) ]
537537pub use re_set:: unicode:: * ;
538- #[ cfg( feature = "use_std " ) ]
539- #[ cfg( feature = "use_std " ) ]
538+ #[ cfg( feature = "std " ) ]
539+ #[ cfg( feature = "std " ) ]
540540pub use re_unicode:: {
541541 escape, CaptureLocations , CaptureMatches , CaptureNames , Captures ,
542542 Locations , Match , Matches , NoExpand , Regex , Replacer , ReplacerRef , Split ,
@@ -630,7 +630,7 @@ When the `s` flag is enabled, `.` matches any byte.
630630In general, one should expect performance on `&[u8]` to be roughly similar to
631631performance on `&str`.
632632*/
633- #[ cfg( feature = "use_std " ) ]
633+ #[ cfg( feature = "std " ) ]
634634pub mod bytes {
635635 pub use re_builder:: bytes:: * ;
636636 pub use re_builder:: set_bytes:: * ;
@@ -663,7 +663,7 @@ mod utf8;
663663/// testing different matching engines and supporting the `regex-debug` CLI
664664/// utility.
665665#[ doc( hidden) ]
666- #[ cfg( feature = "use_std " ) ]
666+ #[ cfg( feature = "std " ) ]
667667pub mod internal {
668668 pub use compile:: Compiler ;
669669 pub use exec:: { Exec , ExecBuilder } ;
0 commit comments