Skip to content

Commit

Permalink
No doc comments on expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 4, 2021
1 parent a76dae4 commit 3af7989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_mir/src/transform/mod.rs
Expand Up @@ -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),
Expand Down

0 comments on commit 3af7989

Please sign in to comment.