diff options
| author | est31 <MTest31@outlook.com> | 2022-07-21 23:00:28 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-07-29 19:30:25 +0200 |
| commit | 79246e8e9a4cac5dc4330da4af4342f3d95b688d (patch) | |
| tree | 8b55c4af90a0e282d7db6a641ea8e0bb53d144c7 | |
| parent | e62f6a0e872d6016320586195f06447408fb15e1 (diff) | |
| download | rust-79246e8e9a4cac5dc4330da4af4342f3d95b688d.tar.gz rust-79246e8e9a4cac5dc4330da4af4342f3d95b688d.zip | |
Remove box syntax from doctest.rs
| -rw-r--r-- | src/librustdoc/doctest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index 568bad2a382..213f564ce2d 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -740,7 +740,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool { rustc_errors::fallback_fluent_bundle(rustc_errors::DEFAULT_LOCALE_RESOURCES, false); let emitter = EmitterWriter::new( - box io::sink(), + Box::new(io::sink()), None, None, fallback_bundle, @@ -751,7 +751,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool { false, ); - let handler = Handler::with_emitter(false, None, box emitter); + let handler = Handler::with_emitter(false, None, Box::new(emitter)); let sess = ParseSess::with_span_handler(handler, sm); let mut parser = match maybe_new_parser_from_source_str(&sess, filename, source.to_owned()) { |
