]> git.proxmox.com Git - cargo.git/blobdiff - vendor/regex/tests/macros_str.rs
New upstream version 0.52.0
[cargo.git] / vendor / regex / tests / macros_str.rs
index 9b996b33b90fdca607eb314e169e7580b7a36a3d..7b7eb110c26b41608986a0de4fb291601af9fd1d 100644 (file)
@@ -4,6 +4,7 @@ macro_rules! t { ($text:expr) => { text!($text) } }
 macro_rules! match_text { ($text:expr) => { $text.as_str() } }
 macro_rules! use_ { ($($path: tt)*) => { use regex::$($path)*; } }
 macro_rules! empty_vec { () => { <Vec<&str>>::new() } }
+macro_rules! bytes { ($text:expr) => { std::str::from_utf8($text.as_ref()).unwrap() } }
 
 macro_rules! no_expand {
     ($text:expr) => {{