File tree 1 file changed +8
-0
lines changed
compiler/rustc_mir_build/src/thir/cx
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ use crate::thir::cx::Cx;
26
26
use crate :: thir:: util:: UserAnnotatedTyHelpers ;
27
27
28
28
impl < ' tcx > Cx < ' tcx > {
29
+ /// Create a THIR expression for the given HIR expression. This expands all
30
+ /// adjustments and directly adds the type information from the
31
+ /// `typeck_results`. See the [dev-guide] for more details.
32
+ ///
33
+ /// (The term "mirror" in this case does not refer to "flipped" or
34
+ /// "reversed".)
35
+ ///
36
+ /// [dev-guide]: https://rustc-dev-guide.rust-lang.org/thir.html
29
37
pub ( crate ) fn mirror_expr ( & mut self , expr : & ' tcx hir:: Expr < ' tcx > ) -> ExprId {
30
38
// `mirror_expr` is recursing very deep. Make sure the stack doesn't overflow.
31
39
ensure_sufficient_stack ( || self . mirror_expr_inner ( expr) )
You can’t perform that action at this time.
0 commit comments