File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool {
740
740
rustc_errors:: fallback_fluent_bundle ( rustc_errors:: DEFAULT_LOCALE_RESOURCES , false ) ;
741
741
742
742
let emitter = EmitterWriter :: new (
743
- box io:: sink ( ) ,
743
+ Box :: new ( io:: sink ( ) ) ,
744
744
None ,
745
745
None ,
746
746
fallback_bundle,
@@ -751,7 +751,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool {
751
751
false ,
752
752
) ;
753
753
754
- let handler = Handler :: with_emitter ( false , None , box emitter) ;
754
+ let handler = Handler :: with_emitter ( false , None , Box :: new ( emitter) ) ;
755
755
let sess = ParseSess :: with_span_handler ( handler, sm) ;
756
756
let mut parser =
757
757
match maybe_new_parser_from_source_str ( & sess, filename, source. to_owned ( ) ) {
You can’t perform that action at this time.
0 commit comments