Fix some broken tests

This commit is contained in:
Eric Holk 2023-11-30 17:32:29 -08:00
parent f9d1f922dc
commit 26f9954971
No known key found for this signature in database
GPG Key ID: 8EA6B43ED4CE0911
2 changed files with 2 additions and 2 deletions

View File

@ -1786,7 +1786,7 @@ fn lower_fn_params_to_names(&mut self, decl: &FnDecl) -> &'hir [Ident] {
/// `NodeId`. /// `NodeId`.
/// ///
/// `transform_return_type`: if `Some`, applies some conversion to the return type, such as is /// `transform_return_type`: if `Some`, applies some conversion to the return type, such as is
/// needed for `async fn` and `gen fn`. See [`FnReturnTransformation`] for more details. /// needed for `async fn` and `gen fn`. See [`CoroutineKind`] for more details.
#[instrument(level = "debug", skip(self))] #[instrument(level = "debug", skip(self))]
fn lower_fn_decl( fn lower_fn_decl(
&mut self, &mut self,

View File

@ -132,7 +132,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
binder: ClosureBinder::NotPresent, binder: ClosureBinder::NotPresent,
capture_clause: CaptureBy::Value { move_kw: DUMMY_SP }, capture_clause: CaptureBy::Value { move_kw: DUMMY_SP },
constness: Const::No, constness: Const::No,
asyncness: Async::No, coro_kind: None,
movability: Movability::Movable, movability: Movability::Movable,
fn_decl: decl.clone(), fn_decl: decl.clone(),
body: e, body: e,