Skip to content

Commit 26c1757

Browse files
fixed: Adding generator_stop to compile_future_features
1 parent 07fdcb6 commit 26c1757

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

compiler/codegen/src/compile.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,9 +2903,15 @@ impl Compiler {
29032903
for feature in features {
29042904
match feature.name.as_str() {
29052905
// Python 3 features; we've already implemented them by default
2906-
"nested_scopes" | "generators" | "division" | "absolute_import"
2907-
| "with_statement" | "print_function" | "unicode_literals" => {}
2908-
// "generator_stop" => {}
2906+
"nested_scopes"
2907+
| "generators"
2908+
| "division"
2909+
| "absolute_import"
2910+
| "with_statement"
2911+
| "print_function"
2912+
| "unicode_literals"
2913+
| "compile_future_features" => {}
2914+
"generator_stop" => {}
29092915
"annotations" => self.future_annotations = true,
29102916
other => {
29112917
return Err(self.error(CodegenErrorType::InvalidFutureFeature(other.to_owned())))

0 commit comments

Comments
 (0)