rename to string_deref_patterns

This commit is contained in:
Deadbeef 2022-11-11 14:31:07 +00:00
parent 64a17a09a8
commit bc51f8783c
9 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
// compile-flags: -Z mir-opt-level=0 -C panic=abort
#![feature(deref_patterns)]
#![feature(string_deref_patterns)]
#![crate_type = "lib"]
// EMIT_MIR string.foo.PreCodegen.after.mir

View file

@ -1,6 +1,6 @@
// run-pass
// check-run-results
#![feature(deref_patterns)]
#![feature(string_deref_patterns)]
fn main() {
test(Some(String::from("42")));

View file

@ -1,5 +1,5 @@
// check-pass
#![feature(deref_patterns)]
#![feature(string_deref_patterns)]
fn main() {
match <_ as Default>::default() {

View file

@ -1,4 +1,4 @@
// gate-test-deref_patterns
// gate-test-string_deref_patterns
fn main() {
match String::new() {
"" | _ => {}

View file

@ -1,5 +1,5 @@
// check-pass
#![feature(deref_patterns)]
#![feature(string_deref_patterns)]
fn foo(s: &String) -> i32 {
match *s {