about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts/check.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-06-10 11:45:38 +0200
committerRalf Jung <post@ralfj.de>2025-06-10 11:45:38 +0200
commit6d1db1144c4c21b5e2e31a98f89c2d6109403d48 (patch)
treeefd596aa2fc889d4935d8641a32881de5aa6cd6c /compiler/rustc_const_eval/src/check_consts/check.rs
parent40daf23eeb711dadf140b2536e67e3ff4c999196 (diff)
downloadrust-6d1db1144c4c21b5e2e31a98f89c2d6109403d48.tar.gz
rust-6d1db1144c4c21b5e2e31a98f89c2d6109403d48.zip
const_eval: fix some outdated comments
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/check.rs')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/check.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/check.rs b/compiler/rustc_const_eval/src/check_consts/check.rs
index 9719d405259..4f252f3ccd4 100644
--- a/compiler/rustc_const_eval/src/check_consts/check.rs
+++ b/compiler/rustc_const_eval/src/check_consts/check.rs
@@ -356,10 +356,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> {
             hir::ConstContext::ConstFn => true,
             _ => {
                 // For indirect places, we are not creating a new permanent borrow, it's just as
-                // transient as the already existing one. For reborrowing references this is handled
-                // at the top of `visit_rvalue`, but for raw pointers we handle it here.
-                // Pointers/references to `static mut` and cases where the `*` is not the first
-                // projection also end up here.
+                // transient as the already existing one.
                 // Locals with StorageDead do not live beyond the evaluation and can
                 // thus safely be borrowed without being able to be leaked to the final
                 // value of the constant.