about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-02 18:55:43 -0400
committerGitHub <noreply@github.com>2022-08-02 18:55:43 -0400
commit35a35d86fdca99b22b07ed7d998ce05032e800d4 (patch)
tree6cd59d20dc2afda17db0ca112f90bed84c1b073d
parent3e44ca95dd844863eeb9bba44209e43d2afb81a4 (diff)
downloadrust-35a35d86fdca99b22b07ed7d998ce05032e800d4.tar.gz
rust-35a35d86fdca99b22b07ed7d998ce05032e800d4.zip
update comment
Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
-rw-r--r--compiler/rustc_mir_transform/src/check_unsafety.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/check_unsafety.rs b/compiler/rustc_mir_transform/src/check_unsafety.rs
index a9eb60c7a15..0f5fd77f7ab 100644
--- a/compiler/rustc_mir_transform/src/check_unsafety.rs
+++ b/compiler/rustc_mir_transform/src/check_unsafety.rs
@@ -22,9 +22,6 @@ pub struct UnsafetyChecker<'a, 'tcx> {
     param_env: ty::ParamEnv<'tcx>,
 
     /// Used `unsafe` blocks in this function. This is used for the "unused_unsafe" lint.
-    ///
-    /// The keys are the used `unsafe` blocks, the UnusedUnsafeKind indicates whether
-    /// or not any of the usages happen at a place that doesn't allow `unsafe_op_in_unsafe_fn`.
     used_unsafe_blocks: FxHashSet<HirId>,
 }