X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_ast_lowering%2Fsrc%2Fexpr.rs;h=8aeeeb50eb5593c7e84761f04c9feb4319cd2c78;hb=7907385999b4a83d37ed31d334f3ed9ca02983a1;hp=37ae41fabf987bd1658983325b560ec4b650ba68;hpb=bf611439e3239ad3f74bd76cc46a4e89b87d8219;p=rust.git diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 37ae41fabf9..8aeeeb50eb5 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -615,7 +615,7 @@ pub(super) fn make_async_expr( } /// Desugar `.await` into: - /// ```rust + /// ```ignore (pseudo-rust) /// match ::std::future::IntoFuture::into_future() { /// mut __awaitee => loop { /// match unsafe { ::std::future::Future::poll( @@ -1325,7 +1325,7 @@ fn lower_expr_yield(&mut self, span: Span, opt_expr: Option<&Expr>) -> hir::Expr } /// Desugar `ExprForLoop` from: `[opt_ident]: for in ` into: - /// ```rust + /// ```ignore (pseudo-rust) /// { /// let result = match IntoIterator::into_iter() { /// mut iter => { @@ -1436,7 +1436,7 @@ fn lower_expr_for( } /// Desugar `ExprKind::Try` from: `?` into: - /// ```rust + /// ```ignore (pseudo-rust) /// match Try::branch() { /// ControlFlow::Continue(val) => #[allow(unreachable_code)] val,, /// ControlFlow::Break(residual) =>