We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07fdcb6 commit 5e5a905Copy full SHA for 5e5a905
1 file changed
compiler/codegen/src/compile.rs
@@ -2903,9 +2903,15 @@ impl Compiler {
2903
for feature in features {
2904
match feature.name.as_str() {
2905
// 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" => {}
+ "nested_scopes"
+ | "generators"
+ | "division"
2909
+ | "absolute_import"
2910
+ | "with_statement"
2911
+ | "print_function"
2912
+ | "unicode_literals"
2913
+ | "compile_future_features" => {}
2914
+ "generator_stop" => {}
2915
"annotations" => self.future_annotations = true,
2916
other => {
2917
return Err(self.error(CodegenErrorType::InvalidFutureFeature(other.to_owned())))
0 commit comments