No doc comments on expressions
This commit is contained in:
parent
a76dae4946
commit
3af7989a7c
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user