File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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 ( ) ) ) )
You can’t perform that action at this time.
0 commit comments