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 {
740740 rustc_errors:: fallback_fluent_bundle ( rustc_errors:: DEFAULT_LOCALE_RESOURCES , false ) ;
741741
742742 let emitter = EmitterWriter :: new (
743- box io:: sink ( ) ,
743+ Box :: new ( io:: sink ( ) ) ,
744744 None ,
745745 None ,
746746 fallback_bundle,
@@ -751,7 +751,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool {
751751 false ,
752752 ) ;
753753
754- let handler = Handler :: with_emitter ( false , None , box emitter) ;
754+ let handler = Handler :: with_emitter ( false , None , Box :: new ( emitter) ) ;
755755 let sess = ParseSess :: with_span_handler ( handler, sm) ;
756756 let mut parser =
757757 match maybe_new_parser_from_source_str ( & sess, filename, source. to_owned ( ) ) {
You can’t perform that action at this time.
0 commit comments