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_mir_transform | |
| parent | cfee10ce899b694e2896cd2f578bdda79746d0a6 (diff) | |
remove `Ty::is_copy_modulo_regions`
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/validate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/validate.rs b/compiler/rustc_mir_transform/src/validate.rs index 51e5c49cea1..f67d9a77825 100644 --- a/compiler/rustc_mir_transform/src/validate.rs +++ b/compiler/rustc_mir_transform/src/validate.rs @@ -624,7 +624,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> { if let Operand::Copy(place) = operand { let ty = place.ty(&self.body.local_decls, self.tcx).ty; - if !ty.is_copy_modulo_regions(self.tcx, self.typing_env) { + if !self.tcx.type_is_copy_modulo_regions(self.typing_env, ty) { self.fail(location, format!("`Operand::Copy` with non-`Copy` type {ty}")); } } |
