Remove box syntax from doctest.rs
This commit is contained in:
parent
e62f6a0e87
commit
79246e8e9a
@ -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);
|
rustc_errors::fallback_fluent_bundle(rustc_errors::DEFAULT_LOCALE_RESOURCES, false);
|
||||||
|
|
||||||
let emitter = EmitterWriter::new(
|
let emitter = EmitterWriter::new(
|
||||||
box io::sink(),
|
Box::new(io::sink()),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
fallback_bundle,
|
fallback_bundle,
|
||||||
@ -751,7 +751,7 @@ fn check_if_attr_is_complete(source: &str, edition: Edition) -> bool {
|
|||||||
false,
|
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 sess = ParseSess::with_span_handler(handler, sm);
|
||||||
let mut parser =
|
let mut parser =
|
||||||
match maybe_new_parser_from_source_str(&sess, filename, source.to_owned()) {
|
match maybe_new_parser_from_source_str(&sess, filename, source.to_owned()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user