We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3bf23 commit aaff8b1Copy full SHA for aaff8b1
compiler/rustc_mir_build/src/thir/cx/expr.rs
@@ -26,6 +26,8 @@ use crate::thir::cx::Cx;
26
use crate::thir::util::UserAnnotatedTyHelpers;
27
28
impl<'tcx> Cx<'tcx> {
29
+ // Create a THIR expression that is "the same" as the HIR expression. The
30
+ // term "mirror" in this case does not refer to "flipped" or "reversed".
31
pub(crate) fn mirror_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) -> ExprId {
32
// `mirror_expr` is recursing very deep. Make sure the stack doesn't overflow.
33
ensure_sufficient_stack(|| self.mirror_expr_inner(expr))
0 commit comments