From 5734558881353d5f95454f44c81d71c2293d047d Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 13 Jun 2019 17:05:32 +0200 Subject: [PATCH] The future is now --- src/librustc_mir/interpret/intern.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustc_mir/interpret/intern.rs b/src/librustc_mir/interpret/intern.rs index 9bbcd306651..e43ebbffe90 100644 --- a/src/librustc_mir/interpret/intern.rs +++ b/src/librustc_mir/interpret/intern.rs @@ -162,10 +162,6 @@ fn visit_primitive(&mut self, mplace: MPlaceTy<'tcx>) -> InterpResult<'tcx> { // Check if we have encountered this pointer+layout combination before. // Only recurse for allocation-backed pointers. if let Scalar::Ptr(ptr) = mplace.ptr { - // In the future we will probably allow `& &mut T`, and thus will want to merge - // `mutability` with `self.mutability` to only choose `Mutable` if both are - // `Mutable`. - // We do not have any `frozen` logic here, because it's essentially equivalent to // the mutability except for the outermost item. Only `UnsafeCell` can "unfreeze", // and we check that in `visit_aggregate`.