Skip to content

Commit 0c5cc08

Browse files
author
George-lewis
committed
Fix missing ui_testing argument
1 parent 818f136 commit 0c5cc08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_ast_lowering/src/expr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
16751675
sym::coroutines,
16761676
span,
16771677
"yield syntax is experimental",
1678+
self.tcx.sess.opts.unstable_opts.ui_testing,
16781679
)
16791680
.emit();
16801681
}

compiler/rustc_ast_passes/src/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
612612
ui_testing,
613613
"to use an async block, remove the `||`: `async {`"
614614
);
615-
gate_all!(async_for_loop, "`for await` loops are experimental");
615+
gate_all!(async_for_loop, "`for await` loops are experimental", ui_testing);
616616
gate_all!(
617617
closure_lifetime_binder,
618618
"`for<...>` binders for closures are experimental",

0 commit comments

Comments
 (0)