diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-05-20 15:39:26 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-05-20 15:39:26 +0200 |
| commit | 12cbb6ced8a848d1de68e7f0fe842217b9563ccc (patch) | |
| tree | c3bbf48a283d582da6730ae6829b6bd1d8defaf1 /src/tools/clippy/tests/ui/regex.rs | |
| parent | 25f084d5e007b9561d155be0b1a2e369c8e4b0ef (diff) | |
| parent | 435a8ad86c7a33bd7ffb91c59039943408d3b6aa (diff) | |
| download | rust-12cbb6ced8a848d1de68e7f0fe842217b9563ccc.tar.gz rust-12cbb6ced8a848d1de68e7f0fe842217b9563ccc.zip | |
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
Diffstat (limited to 'src/tools/clippy/tests/ui/regex.rs')
| -rw-r--r-- | src/tools/clippy/tests/ui/regex.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/regex.rs b/src/tools/clippy/tests/ui/regex.rs index ab8ac97a0e7..a5f79b139bc 100644 --- a/src/tools/clippy/tests/ui/regex.rs +++ b/src/tools/clippy/tests/ui/regex.rs @@ -34,8 +34,10 @@ fn syntax_error() { let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]); let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]); + // These following three cases are considering valid since regex-1.8.0 let raw_string_error = Regex::new(r"[...\/...]"); let raw_string_error = Regex::new(r#"[...\/...]"#); + let _ = Regex::new(r"(?<hi>hi)").unwrap(); let escaped_string_span = Regex::new("\\b\\c"); |
