about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-03 22:01:43 -0700
committerbors <bors@rust-lang.org>2014-06-03 22:01:43 -0700
commit5a6dc40a102cecdf73ddc9757afe7233e678cfeb (patch)
tree7e4aac2afbd30862c16e69e4023627569cfa2ba7 /src/rustllvm/RustWrapper.cpp
parent3eeaa84a50bdbd6c3cc5e33c07a01110b59c7087 (diff)
parent9d39178f2f60b6076e4bd00e263f2304084f34b4 (diff)
downloadrust-5a6dc40a102cecdf73ddc9757afe7233e678cfeb.tar.gz
rust-5a6dc40a102cecdf73ddc9757afe7233e678cfeb.zip
auto merge of #14634 : BurntSushi/rust/fix-13843, r=alexcrichton
An empty regex is a valid regex that always matches. This behavior
is consistent with at least Go and Python.

A couple regression tests are included.

I'd just assume that an empty regex is an invalid regex and that an error should be returned (I can't think of any reason to use an empty regex?), but it's probably better to be consistent with other regex libraries.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions