Change regex! macro to expand to a constexpr, allowing to put it in a static

This commit is contained in:
Marvin Löbel
2014-05-15 13:23:46 +02:00
parent 759517c180
commit b997de529a
5 changed files with 126 additions and 45 deletions

View File

@@ -401,7 +401,7 @@ pub mod native {
// undesirable consequences (such as requiring a dependency on
// `libsyntax`).
//
// Secondly, the code generated generated by `regex!` must *also* be able
// Secondly, the code generated by `regex!` must *also* be able
// to access various functions in this crate to reduce code duplication
// and to provide a value with precisely the same `Regex` type in this
// crate. This, AFAIK, is impossible to mitigate.