about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-11-11 14:31:07 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-11-18 06:16:20 +0000
commitbc51f8783cdbee5a1ed121f017ec7360d9be9124 (patch)
tree99e6168b33feb285042553ab6bbcc546856967fb /compiler/rustc_mir_build/src
parent64a17a09a87118fdb80dae8bf993692d18ea9fa2 (diff)
downloadrust-bc51f8783cdbee5a1ed121f017ec7360d9be9124.tar.gz
rust-bc51f8783cdbee5a1ed121f017ec7360d9be9124.zip
rename to `string_deref_patterns`
Diffstat (limited to 'compiler/rustc_mir_build/src')
-rw-r--r--compiler/rustc_mir_build/src/build/matches/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/build/matches/test.rs b/compiler/rustc_mir_build/src/build/matches/test.rs
index e6c01b72b1b..af0d7879c57 100644
--- a/compiler/rustc_mir_build/src/build/matches/test.rs
+++ b/compiler/rustc_mir_build/src/build/matches/test.rs
@@ -242,8 +242,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
             TestKind::Eq { value, ty } => {
                 let tcx = self.tcx;
                 if let ty::Adt(def, _) = ty.kind() && Some(def.did()) == tcx.lang_items().string() {
-                    if !tcx.features().deref_patterns {
-                        bug!("matching on `String` went through without enabling deref_patterns");
+                    if !tcx.features().string_deref_patterns {
+                        bug!("matching on `String` went through without enabling string_deref_patterns");
                     }
                     let re_erased = tcx.lifetimes.re_erased;
                     let ref_string = self.temp(tcx.mk_imm_ref(re_erased, ty), test.span);