Yuxiang Qiu
88541d6637
fix some typos
2024-01-02 19:21:51 -05:00
Peter Gerber
af1b58fa39
Update regex-syntax to support new word boundry assertions
...
From the regex v1.10.0 release notes [1]:
This is a new minor release of regex that adds support for start
and end word boundary assertions. [...]
The new word boundary assertions are:
• \< or \b{start}: a Unicode start-of-word boundary (\W|\A
on the left, \w on the right).
• \> or \b{end}: a Unicode end-of-word boundary (\w on the
left, \W|\z on the right)).
• \b{start-half}: half of a Unicode start-of-word boundary
(\W|\A on the left).
• \b{end-half}: half of a Unicode end-of-word boundary
(\W|\z on the right).
[1]: https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#1100-2023-10-09
2023-12-02 19:44:36 +00:00
Jason Newcomb
79247d95f7
Split part of needless_borrow
into needless_borrows_for_generic_args
2023-09-17 09:48:12 -04:00
Guillaume Gomez
a05d3a4137
Automatic generation of error annotations for ui tests
2023-08-22 17:18:11 +02:00
Centri3
8cb6c86996
change category and refactor
...
Update raw_strings.rs
Revert "new lints for visibility"
This reverts commit 0e5a537d209727169769dc19cf86aef27122c092.
new lints for visibility
2023-06-27 05:16:40 -05:00
Centri3
bc744eb82b
new lint needless_raw_string
+ refactor a bit
...
Thanks, #112373 , for the snippet at line 75!
2023-06-27 05:12:00 -05:00
Centri3
1bf74fc303
add needless_raw_string_hashes
lint
...
add semicolon in doctest
2023-06-27 05:12:00 -05:00
Renato Lochetti
ffc2bc83b0
Fixing invalid_regex
with invalid UTF8. Also, adding more test cases
2023-05-28 12:53:03 +01:00
J-ZhengLi
5fc1c79019
bump up regex-syntax
dependency version to 0.7.0
2023-04-22 11:17:10 +08:00
Alex Macleod
986f40fab0
invalid_regex
: Show full error when string value doesn't match source
2023-01-26 15:33:40 +00:00
Samuel E. Moelius III
032f112745
Fix adjacent code
2022-08-16 18:34:51 -04:00
Andre Bogus
11672577de
Fix unicode regexen with bytes::Regex
...
fixes #6005
2020-10-08 01:07:00 +02:00
Philipp Hansch
d347d0cf59
Deprecate regex_macro lint
2020-07-01 13:05:41 +02:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Matthias Krüger
435299be30
rustfmt tests
2018-12-09 23:26:16 +01:00
Oliver Scherer
b8654eaa6c
Stabilize tool lints
2018-10-11 12:16:22 +02:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
flip1995
1b6f6051a8
Adapt ui-tests to the tool_lints
2018-08-29 11:08:29 -07:00
Tim Neumann
fad826f966
allow invalid UTF-8 in bytes Regexes
2018-04-07 22:18:51 +02:00
flip1995
31892e205e
let invalid_regex point to the right place for raw strings
2018-01-23 16:52:14 +01:00
Paul Florence
322effe415
Implementation of the const_static_lifetime
lint.
2017-10-20 10:17:41 -04:00
Oliver Schneider
50ffaca4c9
Reduce the hackiness of cargo-clippy
2017-10-03 12:07:24 +02:00
Oliver Schneider
74c776585c
Move all our tests back to ui tests
2017-08-01 17:54:21 +02:00
Oliver Schneider
4465bc3e3f
Make most tests an example
so we can run them one by one
2017-05-17 14:19:44 +02:00
Luis de Bethencourt
bf6d4b7129
clean tests/ui/regex.rs
...
Cleaning the empty lines for clarity.
2017-05-11 16:22:32 +01:00
Oliver Schneider
1f2c97a291
remove all //~ from tests
2017-02-08 14:58:07 +01:00
Oliver Schneider
fd1351f6e3
rustup and compile-fail -> ui test move
2017-02-07 21:05:30 +01:00