about summary refs log tree commit diff
path: root/compiler/rustc_mir_build
diff options
context:
space:
mode:
authorMu42 <mu001999@outlook.com>2023-03-20 15:32:21 +0800
committerMu42 <mu001999@outlook.com>2023-03-20 15:32:21 +0800
commit20dc53208557db5672a1bcf97b3e582a95913f2c (patch)
tree7bd3b3db32e819f1254143c44aae7c232f642d9b /compiler/rustc_mir_build
parentda7c50c089d5db2d3ebaf227fe075bb1346bfaec (diff)
downloadrust-20dc53208557db5672a1bcf97b3e582a95913f2c.tar.gz
rust-20dc53208557db5672a1bcf97b3e582a95913f2c.zip
Remove Ty::is_region_ptr
Diffstat (limited to 'compiler/rustc_mir_build')
-rw-r--r--compiler/rustc_mir_build/src/thir/cx/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/cx/expr.rs b/compiler/rustc_mir_build/src/thir/cx/expr.rs
index cecb8a61aa2..6fd9b9dbb57 100644
--- a/compiler/rustc_mir_build/src/thir/cx/expr.rs
+++ b/compiler/rustc_mir_build/src/thir/cx/expr.rs
@@ -185,7 +185,7 @@ impl<'tcx> Cx<'tcx> {
         if self.typeck_results().is_coercion_cast(source.hir_id) {
             // Convert the lexpr to a vexpr.
             ExprKind::Use { source: self.mirror_expr(source) }
-        } else if self.typeck_results().expr_ty(source).is_region_ptr() {
+        } else if self.typeck_results().expr_ty(source).is_ref() {
             // Special cased so that we can type check that the element
             // type of the source matches the pointed to type of the
             // destination.