about summary refs log tree commit diff
path: root/tests/ui/pattern/deref-patterns/needs-gate.rs
AgeCommit message (Collapse)AuthorLines
2025-05-05always peel `&mut`, to allow matching on `&mut str`dianne-0/+9
2025-05-05match ergonomics for string and byte string literal patternsdianne-0/+17
2025-04-22make `[u8]` and `[u8;N]` literal patterns usable in deref patternsdianne-0/+10
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-22make `str` literal patterns usable in deref patternsdianne-0/+7
Specifically, this allows string literal patterns to be used where a `str` is expected when `deref_patterns` is enabled.
2025-04-16add a feature gate testdianne-0/+15
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.