diff --git a/contrib/codegen/tests/ui-fail/database-syntax.stderr b/contrib/codegen/tests/ui-fail/database-syntax.stderr index 83556385..6eda43b0 100644 --- a/contrib/codegen/tests/ui-fail/database-syntax.stderr +++ b/contrib/codegen/tests/ui-fail/database-syntax.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: expected string literal --> $DIR/database-syntax.rs:6:1 | diff --git a/contrib/codegen/tests/ui-fail/database-types.stderr b/contrib/codegen/tests/ui-fail/database-types.stderr index 2eed4fb4..ca567d0f 100644 --- a/contrib/codegen/tests/ui-fail/database-types.stderr +++ b/contrib/codegen/tests/ui-fail/database-types.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/contrib/lib/src/templates/fairing.rs b/contrib/lib/src/templates/fairing.rs index 71e138f1..f09d01d9 100644 --- a/contrib/lib/src/templates/fairing.rs +++ b/contrib/lib/src/templates/fairing.rs @@ -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, + crate custom_callback: Box, } impl Fairing for TemplateFairing { diff --git a/contrib/lib/src/uuid.rs b/contrib/lib/src/uuid.rs index 7a4bcdcd..345c371d 100644 --- a/contrib/lib/src/uuid.rs +++ b/contrib/lib/src/uuid.rs @@ -127,7 +127,7 @@ impl FromStr for Uuid { #[inline] fn from_str(s: &str) -> Result { - Ok(Uuid(try!(s.parse()))) + s.parse().map(Uuid) } } diff --git a/core/codegen/tests/ui-fail/catch.stderr b/core/codegen/tests/ui-fail/catch.stderr index afb8110e..4e99155b 100644 --- a/core/codegen/tests/ui-fail/catch.stderr +++ b/core/codegen/tests/ui-fail/catch.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: expected `fn` --> $DIR/catch.rs:6:1 | diff --git a/core/codegen/tests/ui-fail/catch_type_errors.stderr b/core/codegen/tests/ui-fail/catch_type_errors.stderr index a2a93ddf..3fac7438 100644 --- a/core/codegen/tests/ui-fail/catch_type_errors.stderr +++ b/core/codegen/tests/ui-fail/catch_type_errors.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/catchers.stderr b/core/codegen/tests/ui-fail/catchers.stderr index a51b9978..1e8d6b05 100644 --- a/core/codegen/tests/ui-fail/catchers.stderr +++ b/core/codegen/tests/ui-fail/catchers.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: expected `,` --> $DIR/catchers.rs:6:25 | diff --git a/core/codegen/tests/ui-fail/from_form.stderr b/core/codegen/tests/ui-fail/from_form.stderr index f159d165..eef28aa3 100644 --- a/core/codegen/tests/ui-fail/from_form.stderr +++ b/core/codegen/tests/ui-fail/from_form.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: enums are not supported --> $DIR/from_form.rs:6:1 | diff --git a/core/codegen/tests/ui-fail/from_form_type_errors.stderr b/core/codegen/tests/ui-fail/from_form_type_errors.stderr index 821273ef..8cbaf3dd 100644 --- a/core/codegen/tests/ui-fail/from_form_type_errors.stderr +++ b/core/codegen/tests/ui-fail/from_form_type_errors.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/from_form_value.stderr b/core/codegen/tests/ui-fail/from_form_value.stderr index 5c5a148c..8824ac1c 100644 --- a/core/codegen/tests/ui-fail/from_form_value.stderr +++ b/core/codegen/tests/ui-fail/from_form_value.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: tuple structs are not supported --> $DIR/from_form_value.rs:4:1 | diff --git a/core/codegen/tests/ui-fail/responder-types.stderr b/core/codegen/tests/ui-fail/responder-types.stderr index 58577613..66105173 100644 --- a/core/codegen/tests/ui-fail/responder-types.stderr +++ b/core/codegen/tests/ui-fail/responder-types.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr b/core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr index d3f20652..0f16af72 100644 --- a/core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr +++ b/core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: missing expected parameter: `path` --> $DIR/route-attribute-general-syntax.rs:7:1 | diff --git a/core/codegen/tests/ui-fail/route-path-bad-syntax.stderr b/core/codegen/tests/ui-fail/route-path-bad-syntax.stderr index 1a8fffd1..5fffb3fc 100644 --- a/core/codegen/tests/ui-fail/route-path-bad-syntax.stderr +++ b/core/codegen/tests/ui-fail/route-path-bad-syntax.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/route-type-errors.stderr b/core/codegen/tests/ui-fail/route-type-errors.stderr index bee80029..611273bf 100644 --- a/core/codegen/tests/ui-fail/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail/route-type-errors.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/route-warnings.stderr b/core/codegen/tests/ui-fail/route-warnings.stderr index 64a75d7f..fe695c90 100644 --- a/core/codegen/tests/ui-fail/route-warnings.stderr +++ b/core/codegen/tests/ui-fail/route-warnings.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/routes.stderr b/core/codegen/tests/ui-fail/routes.stderr index b6a2d38a..482a55b6 100644 --- a/core/codegen/tests/ui-fail/routes.stderr +++ b/core/codegen/tests/ui-fail/routes.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: expected `,` --> $DIR/routes.rs:6:23 | diff --git a/core/codegen/tests/ui-fail/typed-uri-bad-type.stderr b/core/codegen/tests/ui-fail/typed-uri-bad-type.stderr index 34e870b2..f624a9f1 100644 --- a/core/codegen/tests/ui-fail/typed-uri-bad-type.stderr +++ b/core/codegen/tests/ui-fail/typed-uri-bad-type.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error[E0277]: the trait bound `usize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:50:23 | diff --git a/core/codegen/tests/ui-fail/typed-uris-bad-params.stderr b/core/codegen/tests/ui-fail/typed-uris-bad-params.stderr index b210ca69..8a668788 100644 --- a/core/codegen/tests/ui-fail/typed-uris-bad-params.stderr +++ b/core/codegen/tests/ui-fail/typed-uris-bad-params.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr index 394d4ed4..6de1a33c 100644 --- a/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr +++ b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ 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 | diff --git a/core/codegen/tests/ui-fail/uri_display.stderr b/core/codegen/tests/ui-fail/uri_display.stderr index c7cda987..5b1b4ae7 100644 --- a/core/codegen/tests/ui-fail/uri_display.stderr +++ b/core/codegen/tests/ui-fail/uri_display.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error: fieldless structs or variants are not supported --> $DIR/uri_display.rs:9:1 | diff --git a/core/codegen/tests/ui-fail/uri_display_type_errors.stderr b/core/codegen/tests/ui-fail/uri_display_type_errors.stderr index f44f9de7..82282249 100644 --- a/core/codegen/tests/ui-fail/uri_display_type_errors.stderr +++ b/core/codegen/tests/ui-fail/uri_display_type_errors.stderr @@ -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 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 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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

{ - | ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay

` - | - = 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 for more information - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/response.rs:563:27 - | -563 | body: Option>>, - | ^^^^^^^^^^^^^ 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> { - | ^^^^^^^^ 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>> { - | ^^^^^^^^^^^^^ 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 { - | ^^^^^^^^^^^^^ 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; - | ^^^^^^^ 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 { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:165:20 - | -165 | impl Clone for Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/handler.rs:167:28 - | -167 | fn clone(&self) -> Box { - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: trait objects without an explicit `dyn` are deprecated - --> $DIR/fairings.rs:8:27 - | -8 | all_fairings: Vec>, - | ^^^^^^^ 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, 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) { - | ^^^^^^^ 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, - | ^^^^^^^ help: use `dyn`: `dyn Handler` - -warning: 18 warnings emitted - error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:6:13 | diff --git a/core/codegen/tests/uri_display.rs b/core/codegen/tests/uri_display.rs index f8a4627c..fd233ef6 100644 --- a/core/codegen/tests/uri_display.rs +++ b/core/codegen/tests/uri_display.rs @@ -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); + let uri_string = format!("{}", &$v as &dyn UriDisplay); 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); + let uri_string = format!("{}", &$v as &dyn UriDisplay); assert_eq!(uri_string, $s); ) } diff --git a/core/http/src/lib.rs b/core/http/src/lib.rs index db6c1fac..15380cc1 100644 --- a/core/http/src/lib.rs +++ b/core/http/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(incomplete_features)] #![feature(specialization)] #![feature(proc_macro_hygiene)] #![feature(crate_visibility_modifier)] diff --git a/core/http/src/parse/checkers.rs b/core/http/src/parse/checkers.rs index 26585529..ae9d21ed 100644 --- a/core/http/src/parse/checkers.rs +++ b/core/http/src/parse/checkers.rs @@ -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 } diff --git a/core/http/src/uri/uri_display.rs b/core/http/src/uri/uri_display.rs index 9c5e5c06..b3330464 100644 --- a/core/http/src/uri/uri_display.rs +++ b/core/http/src/uri/uri_display.rs @@ -296,7 +296,7 @@ pub trait UriDisplay { fn fmt(&self, f: &mut Formatter

) -> fmt::Result; } -impl<'a, P: UriPart> fmt::Display for &'a UriDisplay

{ +impl<'a, P: UriPart> fmt::Display for &'a dyn UriDisplay

{ #[inline(always)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { UriDisplay::fmt(*self, &mut >::new(f)) diff --git a/core/lib/src/config/toml_ext.rs b/core/lib/src/config/toml_ext.rs index bf5a6199..42a8b25b 100644 --- a/core/lib/src/config/toml_ext.rs +++ b/core/lib/src/config/toml_ext.rs @@ -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 } } diff --git a/core/lib/src/data/data.rs b/core/lib/src/data/data.rs index e755395e..85aab8c8 100644 --- a/core/lib/src/data/data.rs +++ b/core/lib/src/data/data.rs @@ -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>, NetStream>>; @@ -94,7 +94,7 @@ impl Data { crate fn from_hyp(mut body: HyperBodyReader) -> Result { #[inline(always)] #[cfg(feature = "tls")] - fn concrete_stream(stream: &mut NetworkStream) -> Option { + fn concrete_stream(stream: &mut dyn NetworkStream) -> Option { stream.downcast_ref::() .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 { + fn concrete_stream(stream: &mut dyn NetworkStream) -> Option { stream.downcast_ref::() .map(|s| NetStream::Http(s.clone())) } diff --git a/core/lib/src/error.rs b/core/lib/src/error.rs index a253c49a..9864f6f7 100644 --- a/core/lib/src/error.rs +++ b/core/lib/src/error.rs @@ -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) } /// An error that occurs during launch. diff --git a/core/lib/src/fairing/fairings.rs b/core/lib/src/fairing/fairings.rs index 93815f9c..e7b40c39 100644 --- a/core/lib/src/fairing/fairings.rs +++ b/core/lib/src/fairing/fairings.rs @@ -5,7 +5,7 @@ use yansi::Paint; #[derive(Default)] pub struct Fairings { - all_fairings: Vec>, + all_fairings: Vec>, attach_failures: Vec<&'static str>, // The vectors below hold indices into `all_fairings`. launch: Vec, @@ -19,7 +19,7 @@ impl Fairings { Fairings::default() } - pub fn attach(&mut self, fairing: Box, mut rocket: Rocket) -> Rocket { + pub fn attach(&mut self, fairing: Box, 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) { + fn add(&mut self, fairing: Box) { let kind = fairing.info().kind; if !kind.is_exactly(Kind::Attach) { let index = self.all_fairings.len(); diff --git a/core/lib/src/handler.rs b/core/lib/src/handler.rs index 3aedc0ac..7b593a68 100644 --- a/core/lib/src/handler.rs +++ b/core/lib/src/handler.rs @@ -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`. +/// Unfortunate but necessary hack to be able to clone a `Box`. /// /// 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; + fn clone_handler(&self) -> Box; } impl Cloneable for T { #[inline(always)] - fn clone_handler(&self) -> Box { + fn clone_handler(&self) -> Box { Box::new(self.clone()) } } -impl Clone for Box { +impl Clone for Box { #[inline(always)] - fn clone(&self) -> Box { + fn clone(&self) -> Box { self.clone_handler() } } diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index 55716cba..eb2e3d11 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(incomplete_features)] #![feature(specialization)] #![feature(decl_macro)] #![feature(try_trait)] diff --git a/core/lib/src/response/response.rs b/core/lib/src/response/response.rs index be47b261..2c94342b 100644 --- a/core/lib/src/response/response.rs +++ b/core/lib/src/response/response.rs @@ -560,7 +560,7 @@ impl<'r> ResponseBuilder<'r> { pub struct Response<'r> { status: Option, headers: HeaderMap<'r>, - body: Option>>, + body: Option>>, } 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> { + pub fn body(&mut self) -> Option> { // 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>> { + pub fn take_body(&mut self) -> Option>> { self.body.take() } diff --git a/core/lib/src/router/route.rs b/core/lib/src/router/route.rs index 4856afdc..b41d3a63 100644 --- a/core/lib/src/router/route.rs +++ b/core/lib/src/router/route.rs @@ -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, + pub handler: Box, /// The base mount point of this `Route`. pub base: Origin<'static>, /// The uri (in Rocket's route format) that should be matched against. This diff --git a/examples/handlebars_templates/src/main.rs b/examples/handlebars_templates/src/main.rs index 759674d6..7e51502a 100644 --- a/examples/handlebars_templates/src/main.rs +++ b/examples/handlebars_templates/src/main.rs @@ -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("")?;