Skip to content

Commit 79246e8

Browse files
committed
Remove box syntax from doctest.rs
1 parent e62f6a0 commit 79246e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/doctest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)