rust-analyzer/crates
bors[bot] 4fddf40f5b
Merge #7224
7224: Remove unnecessary allocation when checking whether to hide argument name hint r=jhpratt a=jhpratt

The case-insensitive prefix/suffix check can be performed
character-by-character. This allows the check to be done without having
to allocate a new string. As a side effect, it's also no longer
necessary to convert the entire string to lowercase, as it's done as
needed. As the only case equality we're handling is ASCII, this
operation can be further optimized by using byte equality, rather than
character equality.

cc @SomeoneToIgnore, as it's an update on my PR from yesterday.

Co-authored-by: Jacob Pratt <jacob@jhpratt.dev>
2021-01-10 09:34:24 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Better fixture highlight 2021-01-07 19:11:27 +03:00
base_db Better fixture highlight 2021-01-07 19:11:27 +03:00
cfg Upgrade expect-test to 1.1 2021-01-03 14:43:29 +01:00
completion Simplify mod completion 2021-01-07 23:33:52 +01:00
flycheck Refactor out JodChild 2021-01-08 01:08:34 +08:00
hir Merge #7145 2021-01-08 03:57:11 +00:00
hir_def Merge #7145 2021-01-08 03:57:11 +00:00
hir_expand Merge #7145 2021-01-08 03:57:11 +00:00
hir_ty Merge #7145 2021-01-08 03:57:11 +00:00
ide Merge #7224 2021-01-10 09:34:24 +00:00
ide_db Merge #7145 2021-01-08 03:57:11 +00:00
mbe Add test 2021-01-08 14:00:23 +08:00
parser parser,syntax: Add separate parser for stmt with optional semicolon 2021-01-03 12:05:52 +01:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Remove serde_stacker which depends on cc 2021-01-01 15:26:55 +08:00
proc_macro_srv Replace last usages of difference with dissimilar 2021-01-06 18:13:29 +01:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Less confusing instr stat 2021-01-06 18:16:04 +03:00
project_model Report progress for cargo metadata and output-dir 2021-01-08 01:18:58 +08:00
rust-analyzer Shorten names 2021-01-09 14:48:15 +03:00
ssr Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
stdx Simplify highlighting infra 2021-01-08 23:47:35 +03:00
syntax Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
test_utils Better fixture highlight 2021-01-07 19:11:27 +03:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Refactor TokenBuffer for reduc cloning 2021-01-05 02:00:46 +08:00
vfs Use file_set::FileSet and FileSet consistently in doc 2021-01-07 12:18:25 +01:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00