rename to string_deref_patterns
This commit is contained in:
parent
64a17a09a8
commit
bc51f8783c
9 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// run-pass
|
||||
// check-run-results
|
||||
#![feature(deref_patterns)]
|
||||
#![feature(string_deref_patterns)]
|
||||
|
||||
fn main() {
|
||||
test(Some(String::from("42")));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// check-pass
|
||||
#![feature(deref_patterns)]
|
||||
#![feature(string_deref_patterns)]
|
||||
|
||||
fn main() {
|
||||
match <_ as Default>::default() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// gate-test-deref_patterns
|
||||
// gate-test-string_deref_patterns
|
||||
fn main() {
|
||||
match String::new() {
|
||||
"" | _ => {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// check-pass
|
||||
#![feature(deref_patterns)]
|
||||
#![feature(string_deref_patterns)]
|
||||
|
||||
fn foo(s: &String) -> i32 {
|
||||
match *s {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue