about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/infer.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-12-02 13:57:56 +0100
committerlcnr <rust@lcnr.de>2024-12-02 13:57:56 +0100
commite089bead327795727e1a72fd276776f12f186cea (patch)
treeb68813f4b73b11c4f664a7240e5b24cbc11ff061 /compiler/rustc_trait_selection/src/infer.rs
parentcfee10ce899b694e2896cd2f578bdda79746d0a6 (diff)
downloadrust-e089bead327795727e1a72fd276776f12f186cea.tar.gz
rust-e089bead327795727e1a72fd276776f12f186cea.zip
remove `Ty::is_copy_modulo_regions`
Diffstat (limited to 'compiler/rustc_trait_selection/src/infer.rs')
-rw-r--r--compiler/rustc_trait_selection/src/infer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/infer.rs b/compiler/rustc_trait_selection/src/infer.rs
index 43244eb5dcb..ee708564a80 100644
--- a/compiler/rustc_trait_selection/src/infer.rs
+++ b/compiler/rustc_trait_selection/src/infer.rs
@@ -35,7 +35,7 @@ impl<'tcx> InferCtxt<'tcx> {
         // FIXME(#132279): This should be removed as it causes us to incorrectly
         // handle opaques in their defining scope.
         if !(param_env, ty).has_infer() {
-            return ty.is_copy_modulo_regions(self.tcx, self.typing_env(param_env));
+            return self.tcx.type_is_copy_modulo_regions(self.typing_env(param_env), ty);
         }
 
         let copy_def_id = self.tcx.require_lang_item(LangItem::Copy, None);