mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 08:36:23 +00:00
Don't compile regex at every function call. Use `SyncOnceCell` to only compile it once. I believe this still adds some kind of locking mechanism? Related issue: https://github.com/rust-lang/rust/issues/76817