diff options
| author | Michael Goulet <michael@errs.io> | 2025-08-19 13:12:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-08-19 13:12:31 +0000 |
| commit | db0c825d2c745fdf87edd501ebda222052f98771 (patch) | |
| tree | 600ab25153aede40c4a5b980c0da9df2fb1deb44 /compiler/rustc_ast_passes | |
| parent | 0330525b1ce08ab92383fb266ac52f1c268e89d7 (diff) | |
| download | rust-db0c825d2c745fdf87edd501ebda222052f98771.tar.gz rust-db0c825d2c745fdf87edd501ebda222052f98771.zip | |
Gate static coroutines behind a parser feature
Diffstat (limited to 'compiler/rustc_ast_passes')
| -rw-r--r-- | compiler/rustc_ast_passes/src/feature_gate.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_passes/src/feature_gate.rs b/compiler/rustc_ast_passes/src/feature_gate.rs index c7f41fc3cb1..6741b8c340e 100644 --- a/compiler/rustc_ast_passes/src/feature_gate.rs +++ b/compiler/rustc_ast_passes/src/feature_gate.rs @@ -525,6 +525,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) { gate_all!(where_clause_attrs, "attributes in `where` clause are unstable"); gate_all!(super_let, "`super let` is experimental"); gate_all!(frontmatter, "frontmatters are experimental"); + gate_all!(coroutines, "coroutine syntax is experimental"); if !visitor.features.never_patterns() { if let Some(spans) = spans.get(&sym::never_patterns) { |
