From 3af7989a7ce0ef0d6bc9b8a6950f90abbf63ac76 Mon Sep 17 00:00:00 2001 From: oli Date: Sat, 26 Dec 2020 15:10:06 +0000 Subject: [PATCH] No doc comments on expressions --- compiler/rustc_mir/src/transform/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_mir/src/transform/mod.rs b/compiler/rustc_mir/src/transform/mod.rs index a9bc11502bb..717479b9990 100644 --- a/compiler/rustc_mir/src/transform/mod.rs +++ b/compiler/rustc_mir/src/transform/mod.rs @@ -542,9 +542,9 @@ fn inner_optimized_mir(tcx: TyCtxt<'_>, did: LocalDefId) -> Body<'_> { } match tcx.hir().body_const_context(did) { - /// Run the `mir_for_ctfe` query, which depends on `mir_drops_elaborated_and_const_checked` - /// which we are going to steal below. Thus we need to run `mir_for_ctfe` first, so it - /// computes and caches its result. + // Run the `mir_for_ctfe` query, which depends on `mir_drops_elaborated_and_const_checked` + // which we are going to steal below. Thus we need to run `mir_for_ctfe` first, so it + // computes and caches its result. Some(hir::ConstContext::ConstFn) => tcx.ensure().mir_for_ctfe(did), None => {} Some(other) => panic!("do not use `optimized_mir` for constants: {:?}", other), -- 2.44.0