dianne
17bb4bbc86
always peel &mut, to allow matching on &mut str
2025-05-05 04:29:33 -07:00
dianne
fe98130e0f
match ergonomics for string and byte string literal patterns
2025-05-05 04:10:49 -07:00
dianne
32503440cd
make [u8] and [u8;N] literal patterns usable in deref patterns
...
Specifically, this allows byte string literal patterns to be used where
a `[u8]` or `[u8;N]` is expected when `deref_patterns` is enabled.
2025-04-22 13:19:20 -07:00
dianne
61840254c5
make str literal patterns usable in deref patterns
...
Specifically, this allows string literal patterns to be used where a
`str` is expected when `deref_patterns` is enabled.
2025-04-22 13:19:17 -07:00
dianne
4c4b61b730
add a feature gate test
...
Implicit deref patterns allow previously ill-typed programs. Make sure
they're still ill-typed without the feature gate. I've thrown in a test
for `deref!(_)` too, though it seems it refers to `deref_patterns` as a
library feature.
2025-04-16 15:42:13 -07:00