diff options
| author | lcnr <rust@lcnr.de> | 2024-12-02 13:57:56 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-12-02 13:57:56 +0100 |
| commit | e089bead327795727e1a72fd276776f12f186cea (patch) | |
| tree | b68813f4b73b11c4f664a7240e5b24cbc11ff061 /compiler/rustc_trait_selection/src/infer.rs | |
| parent | cfee10ce899b694e2896cd2f578bdda79746d0a6 (diff) | |
| download | rust-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.rs | 2 |
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); |
