rust/library/core/src/str
bors 8b87fefd76 Auto merge of #138537 - yotamofek:pr/lib/multi-char-pattern, r=jhpratt
Optimize multi-char string patterns

Uses specialization for `[T]::contains` from #130991 to optimize multi-char patterns in string searches.
Requesting a perf run to see if this actually has an effect 🙏
(I think that adding `char` to the list of types for which the `SliceContains` is specialized is a good idea, even if it doesn't show up on perf - might be helpful for downstream users)
2025-03-16 14:23:18 +00:00
..
converts.rs Stabilize core::str::from_utf8_mut 2025-02-23 15:16:26 +01:00
count.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
error.rs add FIXME(const-hack) 2024-09-08 23:08:40 +02:00
iter.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lossy.rs chore: fix typos 2024-12-24 23:37:30 +08:00
mod.rs Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08:00
pattern.rs Optimize multi-char string patterns 2025-03-15 14:14:25 +00:00
traits.rs remove const_slice_index annotations, it never had a feature gate anyway 2024-09-08 23:08:43 +02:00
validations.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00