mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-02 06:42:03 +00:00
Update source code idiomacy, clearing warnings.
This commit is contained in:
parent
894fe3c709
commit
6f5725b83d
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: expected string literal
|
||||
--> $DIR/database-syntax.rs:6:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `Unknown: Poolable` is not satisfied
|
||||
--> $DIR/database-types.rs:7:10
|
||||
|
|
||||
|
@ -123,7 +123,7 @@ pub struct TemplateFairing {
|
||||
/// The user-provided customization callback, allowing the use of
|
||||
/// functionality specific to individual template engines. In debug mode,
|
||||
/// this callback might be run multiple times as templates are reloaded.
|
||||
crate custom_callback: Box<Fn(&mut Engines) + Send + Sync + 'static>,
|
||||
crate custom_callback: Box<dyn Fn(&mut Engines) + Send + Sync + 'static>,
|
||||
}
|
||||
|
||||
impl Fairing for TemplateFairing {
|
||||
|
@ -127,7 +127,7 @@ impl FromStr for Uuid {
|
||||
|
||||
#[inline]
|
||||
fn from_str(s: &str) -> Result<Uuid, Self::Err> {
|
||||
Ok(Uuid(try!(s.parse())))
|
||||
s.parse().map(Uuid)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: expected `fn`
|
||||
--> $DIR/catch.rs:6:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `usize: Responder<'_>` is not satisfied
|
||||
--> $DIR/catch_type_errors.rs:6:30
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: expected `,`
|
||||
--> $DIR/catchers.rs:6:25
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: enums are not supported
|
||||
--> $DIR/from_form.rs:6:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `Unknown: FromFormValue<'_>` is not satisfied
|
||||
--> $DIR/from_form_type_errors.rs:7:5
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: tuple structs are not supported
|
||||
--> $DIR/from_form_value.rs:4:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `u8: Responder<'_>` is not satisfied
|
||||
--> $DIR/responder-types.rs:11:5
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: missing expected parameter: `path`
|
||||
--> $DIR/route-attribute-general-syntax.rs:7:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: invalid path URI: expected token '/' but found 'a' at index 0
|
||||
--> $DIR/route-path-bad-syntax.rs:7:8
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
||||
--> $DIR/route-type-errors.rs:8:7
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
warning: 'application/x-custom' is not a known media type
|
||||
--> $DIR/route-warnings.rs:9:21
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: expected `,`
|
||||
--> $DIR/routes.rs:6:23
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, &str>` is not satisfied
|
||||
--> $DIR/typed-uri-bad-type.rs:50:23
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: `has_one` route uri expects 1 parameter but 0 were supplied
|
||||
--> $DIR/typed-uris-bad-params.rs:22:10
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: named and unnamed parameters cannot be mixed
|
||||
--> $DIR/typed-uris-invalid-syntax.rs:9:18
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error: fieldless structs or variants are not supported
|
||||
--> $DIR/uri_display.rs:9:1
|
||||
|
|
||||
|
@ -1,210 +1,3 @@
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/uri_display.rs:299:43
|
||||
|
|
||||
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:12
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:24
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:36
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/checkers.rs:9:48
|
||||
|
|
||||
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: 6 warnings emitted
|
||||
|
||||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lib.rs:1:12
|
||||
|
|
||||
1 | #![feature(specialization)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:563:27
|
||||
|
|
||||
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
|
||||
= note: `#[warn(bare_trait_objects)]` on by default
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:892:48
|
||||
|
|
||||
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/response.rs:969:52
|
||||
|
|
||||
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:12
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
|
||||
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:24
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: `...` range patterns are deprecated
|
||||
--> $DIR/toml_ext.rs:27:36
|
||||
|
|
||||
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
| ^^^ help: use `..=` for an inclusive range
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:18:63
|
||||
|
|
||||
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/data.rs:108:41
|
||||
|
|
||||
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:155:36
|
||||
|
|
||||
155 | fn clone_handler(&self) -> Box<Handler>;
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:160:36
|
||||
|
|
||||
160 | fn clone_handler(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:165:20
|
||||
|
|
||||
165 | impl Clone for Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/handler.rs:167:28
|
||||
|
|
||||
167 | fn clone(&self) -> Box<Handler> {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:8:27
|
||||
|
|
||||
8 | all_fairings: Vec<Box<Fairing>>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:22:43
|
||||
|
|
||||
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/fairings.rs:35:36
|
||||
|
|
||||
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/error.rs:30:17
|
||||
|
|
||||
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
||||
|
||||
warning: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/route.rs:22:22
|
||||
|
|
||||
22 | pub handler: Box<Handler>,
|
||||
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
||||
|
||||
warning: 18 warnings emitted
|
||||
|
||||
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
|
||||
--> $DIR/uri_display_type_errors.rs:6:13
|
||||
|
|
||||
|
@ -7,7 +7,7 @@ use rocket::http::uri::{UriDisplay, Query, Path};
|
||||
|
||||
macro_rules! assert_uri_display_query {
|
||||
($v:expr, $s:expr) => (
|
||||
let uri_string = format!("{}", &$v as &UriDisplay<Query>);
|
||||
let uri_string = format!("{}", &$v as &dyn UriDisplay<Query>);
|
||||
assert_eq!(uri_string, $s);
|
||||
)
|
||||
}
|
||||
@ -117,7 +117,7 @@ fn uri_display_bam() {
|
||||
|
||||
macro_rules! assert_uri_display_path {
|
||||
($v:expr, $s:expr) => (
|
||||
let uri_string = format!("{}", &$v as &UriDisplay<Path>);
|
||||
let uri_string = format!("{}", &$v as &dyn UriDisplay<Path>);
|
||||
assert_eq!(uri_string, $s);
|
||||
)
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(specialization)]
|
||||
#![feature(proc_macro_hygiene)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
|
@ -6,7 +6,7 @@ pub fn is_whitespace(byte: char) -> bool {
|
||||
#[inline]
|
||||
pub fn is_valid_token(c: char) -> bool {
|
||||
match c {
|
||||
'0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
||||
'0'..='9' | 'A'..='Z' | '^'..='~' | '#'..='\''
|
||||
| '!' | '*' | '+' | '-' | '.' => true,
|
||||
_ => false
|
||||
}
|
||||
|
@ -296,7 +296,7 @@ pub trait UriDisplay<P: UriPart> {
|
||||
fn fmt(&self, f: &mut Formatter<P>) -> fmt::Result;
|
||||
}
|
||||
|
||||
impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
||||
impl<'a, P: UriPart> fmt::Display for &'a dyn UriDisplay<P> {
|
||||
#[inline(always)]
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
UriDisplay::fmt(*self, &mut <Formatter<P>>::new(f))
|
||||
|
@ -24,7 +24,7 @@ fn is_not_separator(byte: char) -> bool {
|
||||
#[inline(always)]
|
||||
fn is_ident_char(byte: char) -> bool {
|
||||
match byte {
|
||||
'0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
||||
'0'..='9' | 'A'..='Z' | 'a'..='z' | '_' | '-' => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ use http::hyper::h1::HttpReader::*;
|
||||
use http::hyper::net::{HttpStream, NetworkStream};
|
||||
|
||||
pub type HyperBodyReader<'a, 'b> =
|
||||
self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
||||
self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut dyn NetworkStream>>;
|
||||
|
||||
// |---- from hyper ----|
|
||||
pub type BodyReader = HttpReader<Chain<Cursor<Vec<u8>>, NetStream>>;
|
||||
@ -94,7 +94,7 @@ impl Data {
|
||||
crate fn from_hyp(mut body: HyperBodyReader) -> Result<Data, &'static str> {
|
||||
#[inline(always)]
|
||||
#[cfg(feature = "tls")]
|
||||
fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
fn concrete_stream(stream: &mut dyn NetworkStream) -> Option<NetStream> {
|
||||
stream.downcast_ref::<HttpsStream>()
|
||||
.map(|s| NetStream::Https(s.clone()))
|
||||
.or_else(|| {
|
||||
@ -105,7 +105,7 @@ impl Data {
|
||||
|
||||
#[inline(always)]
|
||||
#[cfg(not(feature = "tls"))]
|
||||
fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
||||
fn concrete_stream(stream: &mut dyn NetworkStream) -> Option<NetStream> {
|
||||
stream.downcast_ref::<HttpStream>()
|
||||
.map(|s| NetStream::Http(s.clone()))
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
use std::{io, fmt};
|
||||
use std::sync::atomic::{Ordering, AtomicBool};
|
||||
use std::error::Error;
|
||||
|
||||
use yansi::Paint;
|
||||
|
||||
@ -27,7 +28,7 @@ pub enum LaunchErrorKind {
|
||||
/// A launch fairing reported an error.
|
||||
FailedFairings(Vec<&'static str>),
|
||||
/// An otherwise uncategorized error occurred during launch.
|
||||
Unknown(Box<::std::error::Error + Send + Sync>)
|
||||
Unknown(Box<dyn Error + Send + Sync>)
|
||||
}
|
||||
|
||||
/// An error that occurs during launch.
|
||||
|
@ -5,7 +5,7 @@ use yansi::Paint;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Fairings {
|
||||
all_fairings: Vec<Box<Fairing>>,
|
||||
all_fairings: Vec<Box<dyn Fairing>>,
|
||||
attach_failures: Vec<&'static str>,
|
||||
// The vectors below hold indices into `all_fairings`.
|
||||
launch: Vec<usize>,
|
||||
@ -19,7 +19,7 @@ impl Fairings {
|
||||
Fairings::default()
|
||||
}
|
||||
|
||||
pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
pub fn attach(&mut self, fairing: Box<dyn Fairing>, mut rocket: Rocket) -> Rocket {
|
||||
// Run the `on_attach` callback if this is an 'attach' fairing.
|
||||
let kind = fairing.info().kind;
|
||||
let name = fairing.info().name;
|
||||
@ -32,7 +32,7 @@ impl Fairings {
|
||||
rocket
|
||||
}
|
||||
|
||||
fn add(&mut self, fairing: Box<Fairing>) {
|
||||
fn add(&mut self, fairing: Box<dyn Fairing>) {
|
||||
let kind = fairing.info().kind;
|
||||
if !kind.is_exactly(Kind::Attach) {
|
||||
let index = self.all_fairings.len();
|
||||
|
@ -145,26 +145,26 @@ pub trait Handler: Cloneable + Send + Sync + 'static {
|
||||
fn handle<'r>(&self, request: &'r Request, data: Data) -> Outcome<'r>;
|
||||
}
|
||||
|
||||
/// Unfortunate but necessary hack to be able to clone a `Box<Handler>`.
|
||||
/// Unfortunate but necessary hack to be able to clone a `Box<dyn Handler>`.
|
||||
///
|
||||
/// This trait should _never_ (and cannot, due to coherence) be implemented by
|
||||
/// any type. Instead, implement `Clone`. All types that implement `Clone` and
|
||||
/// `Handler` automatically implement `Cloneable`.
|
||||
pub trait Cloneable {
|
||||
/// Clones `self`.
|
||||
fn clone_handler(&self) -> Box<Handler>;
|
||||
fn clone_handler(&self) -> Box<dyn Handler>;
|
||||
}
|
||||
|
||||
impl<T: Handler + Clone> Cloneable for T {
|
||||
#[inline(always)]
|
||||
fn clone_handler(&self) -> Box<Handler> {
|
||||
fn clone_handler(&self) -> Box<dyn Handler> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for Box<Handler> {
|
||||
impl Clone for Box<dyn Handler> {
|
||||
#[inline(always)]
|
||||
fn clone(&self) -> Box<Handler> {
|
||||
fn clone(&self) -> Box<dyn Handler> {
|
||||
self.clone_handler()
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(specialization)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(try_trait)]
|
||||
|
@ -560,7 +560,7 @@ impl<'r> ResponseBuilder<'r> {
|
||||
pub struct Response<'r> {
|
||||
status: Option<Status>,
|
||||
headers: HeaderMap<'r>,
|
||||
body: Option<Body<Box<io::Read + 'r>>>,
|
||||
body: Option<Body<Box<dyn io::Read + 'r>>>,
|
||||
}
|
||||
|
||||
impl<'r> Response<'r> {
|
||||
@ -889,7 +889,7 @@ impl<'r> Response<'r> {
|
||||
/// assert_eq!(response.body_string(), Some("Hello, world!".to_string()));
|
||||
/// ```
|
||||
#[inline(always)]
|
||||
pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
||||
pub fn body(&mut self) -> Option<Body<&mut dyn io::Read>> {
|
||||
// Looks crazy, right? Needed so Rust infers lifetime correctly. Weird.
|
||||
match self.body.as_mut() {
|
||||
Some(body) => Some(match body.as_mut() {
|
||||
@ -966,7 +966,7 @@ impl<'r> Response<'r> {
|
||||
/// assert!(response.body().is_none());
|
||||
/// ```
|
||||
#[inline(always)]
|
||||
pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
||||
pub fn take_body(&mut self) -> Option<Body<Box<dyn io::Read + 'r>>> {
|
||||
self.body.take()
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ pub struct Route {
|
||||
/// The method this route matches against.
|
||||
pub method: Method,
|
||||
/// The function that should be called when the route matches.
|
||||
pub handler: Box<Handler>,
|
||||
pub handler: Box<dyn Handler>,
|
||||
/// The base mount point of this `Route`.
|
||||
pub base: Origin<'static>,
|
||||
/// The uri (in Rocket's route format) that should be matched against. This
|
||||
|
@ -58,7 +58,7 @@ fn wow_helper(
|
||||
_: &Handlebars,
|
||||
_: &Context,
|
||||
_: &mut RenderContext,
|
||||
out: &mut Output
|
||||
out: &mut dyn Output
|
||||
) -> HelperResult {
|
||||
if let Some(param) = h.param(0) {
|
||||
out.write("<b><i>")?;
|
||||
|
Loading…
Reference in New Issue
Block a user